Examveda

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

A. Using a catch block with an ampersand (&) after the exception type

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


Join The Discussion

Related Questions on Exception Handling in C plus plus

What is exception handling in C++?

A. A method to handle errors during runtime

B. A method to handle errors during compile time

C. A method to handle errors during linking

D. A method to handle errors during execution