InterviewSolution
Saved Bookmarks
| 1. |
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 errorI 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++ |
|
Answer» RIGHT answer is (c) It will be added to the overhead For explanation: It will be added to the overhead if an EXCEPTION that is THROWN may cause a WHOLE load of OBJECTS to go out of scope. |
|