C++ Programming Question: Download C++ Programming PDF

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

Tweet Share WhatsApp

Answer:

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

Download C++ Programming PDF Read All 120 C++ Programming Questions
Previous QuestionNext Question
How many ways are there to initialize an int with a constant?What is a default constructor in C++?