What happens if an exception is throws from an, object's
constructor and object's destructor?
Answer Posted / truong
1. If exception is thrown in the constructor, the destructor will be not called.
2. If exception is thrown in the destructor of a static object, exception will be catch in the main.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do I make turbo c++ full screen?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
What is the use of endl?
What is virtual destructor? What is its use?
Is map thread safe c++?
What are the different types of polymorphism in c++?
Difference between declaration and definition of a variable.
What is the main function c++?
What is the use of seekg in c++?
Does c++ support exception handling?
What is an operator function? Describe the function of an operator function?
How is c++ used in the real world?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Differentiate between the message and method in c++?