Question: What happens if an exception is thrown inside a try block in C + + , but there is no matching catch block to handle

What happens if an exception is thrown inside a try block in C++, but there is no matching catch block to handle it?
Group of answer choices
The exception is propagated up the function call stack until a matching catch block is found
The exception is ignored and the program continues execution
none of the other choices
The program terminates with an error message

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!