🎴 Flashcard Mode

Java, JavaScript, and C++ Programming Quiz

Card1 / 20
Mastered0
Review0
QuestionClick to flip

What happen if the exception is not caught?

AnswerClick to flip back
A
terminate() function will be called and execution stops.
💡 Explanation:

When an exception is thrown and not caught by any handler, C++ calls std::terminate(). This function typically calls std::abort(), which immediately stops program execution. This prevents undefined behavior from propagating.

Change Mode