Examveda

What is the purpose of the 'std::terminate' function in C++?

A. It is called when an exception is thrown

B. It is called when a program terminates normally

C. It is called when an exception is caught

D. It is called when an uncaught exception causes program termination

Answer: Option D


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