C++20 sections · 1024 units
Open in CourseQuiz: try-catch Basics
Knowledge check
Check Your Understanding
What happens if an exception is thrown inside a try block but no catch block matches its type?
- A.The program searches outer try-catch blocks or terminates
- B.The exception is ignored and execution continues
- C.The compiler produces an error
- D.The exception is automatically converted to a std::exception