Get premium membership and access questions with answers, video lessons as well as revision papers.

What purpose do the terminate() and unexpected() elements serve in a C++ computer program?

      

What purpose do the terminate() and unexpected() elements serve in a C++ computer program?

  

Answers


Davis
terminate() is called when an exception is thrown for which there is no corresponding catch statement.unexpected() is called when an attempt is made to throw an exception out of a function that is not specified in the function's throw clause.
Githiari answered the question on February 5, 2018 at 12:19


Next: Briefly explain how try, catch and throw work together to provide C++ exception handling.
Previous: Give two mechanical properties of composite materials used in fixing teeth

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions