What will happen if an exception that is thrown may cause a whole load of objects to go out of scope?
(a) Terminate the program
(b) Produce a runtime error
(c) It will be added to the overhead
(d) Compilation error
I had been asked this question by my school principal while I was bunking the class.
I would like to ask this question from Exceptions and Efficiency topic in portion Derived Classes, Templates & Exception Handling in C++ of C++