C++ Programming Question:
Download Questions PDF

How does throwing and catching exceptions differ from using setjmp and longjmp?

Answer:

The throw operation calls the destructors for automatic objects instantiated since entry to the try block.

Download C++ Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How many ways are there to initialize an int with a constant?What is a default constructor in C++?