What happens if an exception is throws from an object's
constructor and from object's destructor?
Answer Posted / achal ubbott
If an exception is generated by constructor of the class
that object is not created. That means if you do
delete obj_ptr;
the destructor would not be called.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is general format for a prototype?
Write a program to show polymorphism in C++?
Is java as fast as c++?
Can union be self referenced?
Can we use this pointer inside static member function?
What are default parameters? How are they evaluated in c++ function?
How can we check whether the contents of two structure variables are same or not?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
Difference between declaration and definition of a variable.
Explain how an exception handler is defined and invoked in a Program.
What is a pointer with example?
Write some differences between an external iterator and an internal iterator?
Do you need a main function in c++?
Why we use #include conio h in c++?