Vidyalelo
C++ Programming · Q33

Exception Handling in C++

Programming · C++ Programming · question 33

Q33

How do you catch an exception by reference in C++?

A.
Using a catch block with an ampersand (&) after the exception type
Answer
B.
Using a catch block with an asterisk (*) after the exception type
C.
Using a catch block with no specifier after the exception type
D.
Using a catch block with a 'ref' keyword after the exception type

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board