Examveda

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

A. It leads to undefined behavior

B. It causes the program to crash

C. It is automatically caught and handled

D. It is logged to a file

Answer: Option B


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