What happens if an exception is throws from an object's
constructor and from object's destructor?

Answer Posted / rajesh

exception from object's destructor - could terminate the
program while stack unwinding.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the uses of static class data?

574


What is conditions when using boolean operators?

579


Define vptr.

566


What are the extraction and insertion operators in c++?

537


Explain the different access specifiers for the class member in c++.

518






How to declare a pointer to an array of integers?

624


Can we use this pointer inside static member function?

601


Does c++ cost money?

556


What are stacks?

582


Is c++ vector a linked list?

525


Mention the ways in which parameterized can be invoked. Give an example of each.

550


What is an iterator class in c++?

573


How can virtual functions in c++ be implemented?

586


What are the advantages of c++?

569


How is c++ used in the real world?

550