In C++, which system - provided function is called when no handler is provided to deal with an exception?
Answer: A
Correct answer: terminate ( )
If an exception is thrown and no matching handler is found, C++ calls std::terminate(), which by default calls abort(). unexpected() belonged to the old dynamic exception specifications and is now removed; abort() is what terminate ends up calling rather than the function called first.
Please log in or register to report this question.