Vidyalelo
C++ Programming · Q5

Exception Handling in C++

Programming · C++ Programming · question 5

Q5

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
Answer
D.
To handle errors during compile time

Answer: Option C

Solution

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