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.
“C++ exception handling job preparation guide for freshers and experienced candidates. Number of C++ Exception Handling frequently asked questions(FAQs) asked in many interviews”
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.
b. False
a. True
a. True
d. Program will be terminated abnormally
b. False
a. True
d. Compiler will execute remaining executable statements of outer try block and then the main()
c. Compiler will check for appropriate catch handler of outer try block