C++ Exception Handling

  Home  C++ Programming  C++ Exception Handling


“C++ exception handling job preparation guide for freshers and experienced candidates. Number of C++ Exception Handling frequently asked questions(FAQs) asked in many interviews”



29 C++ Exception Handling Questions And Answers

21⟩ Explain terminate() function?

terminate() is a library function which by default aborts the program

It is called whenever the exception handling mechanism cannot find a handler for a thrown exception.

 169 views

28⟩ In nested try block, if inner catch handler gets executed, then______________ a. Program execution stops immediately b. Outer catch handler will also get executed c. Compiler will jump to the outer catch handler and then executes remaining executable statements of main() d. Compiler will execute remaining executable statements of outer try block and then the main()

d. Compiler will execute remaining executable statements of outer try block and then the main()

 138 views