C++ | Exception Handling | Question 8
Constructing an object of Test Caught 10
Constructing an object of Test Destructing an object of Test Caught 10
(D) Compiler Error
Explanation: When an object is created inside a try block, destructor for the object is called before control is transferred to catch block.
Quiz of this Question