1.

What happens if try catch block is not used?(a) arise an error(b) program will run(c) execute continuously(d) wrong outputThe question was asked during an internship interview.The above asked question is from Uncaught Exceptions in section Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Correct OPTION is (a) arise an error

Explanation: If try catch BLOCK is not used the EXCEPTION THROWN by the program will be uncaught hence will result into error(s).



Discussion

No Comment Found

Related InterviewSolutions