Question OOP-EXC-0057
MediumIn C++, what happens if an exception is thrown and never caught?
- A.
It is ignored
- B.
std::terminate is called and the program ends
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Exception Handling question
In C++, what happens if an exception is thrown and never caught?
It is ignored
std::terminate is called and the program ends
Sign up free to see the answer and a step-by-step explanation.
The exception is printed and the program continues
The function returns 0