Examveda
Examveda

What is the purpose of the 'catch' block in exception handling in C++?

A. To throw exceptions

B. To define the block of code that may generate exceptions

C. To catch and handle exceptions

D. To handle errors during compile time

Answer: Option C


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