Vidyalelo
C++ Programming · Q16

Exception Handling in C++

Programming · C++ Programming · question 16

Q16

What is the default behavior of an uncaught exception in C++?

A.
It leads to undefined behavior
B.
It causes the program to crash
Answer
C.
It is automatically caught and handled
D.
It is logged to a file

Answer: Option B

Solution

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