Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

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

Answer Attachments

Exams With Marking Schemes

Related Questions