Vidyalelo
C++ Programming · Q3

Exception Handling in C++

Programming · C++ Programming · question 3

Q3

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

A.
To catch exceptions
B.
To throw exceptions
C.
To define the block of code that may generate exceptions
Answer
D.
To handle exceptions

Answer: Option C

Solution

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