1.

What will happen when the exception is not caught in the program?(a) error(b) program will execute(c) block of that code will not execute(d) program will execute & displays wrong outputI have been asked this question in a national level competition.My doubt is from Exceptions topic in section Functions, Namespaces & Exceptions in C++ of C++

Answer»

Right answer is (a) error

To EXPLAIN: When EXCEPTIONS are not caught in any PROGRAM then program THROWS error.



Discussion

No Comment Found

Related InterviewSolutions