1.

Which is used to check the error in the block?(a) try(b) throw(c) catch(d) handlerI have been asked this question during an online exam.I'm obligated to ask this question of Catching Exceptions topic in section Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Right choice is (a) try

Easy EXPLANATION - The try block is used to check for ERRORS, if there is any ERROR MEANS, it can throw it to CATCH block.



Discussion

No Comment Found

Related InterviewSolutions