Select the correct option to test your answer:
Computer
Plus Plus Miscellaneous
Difficulty: Medium
What will be the output of the following C++ code? #include <iostream> #include <exception> using namespace std; void terminator() { cout << "terminate" << endl; } void (*old_terminate)() = set_terminate(terminator); class Botch { public: class Fruit {}; void f() { cout << "one" << endl; throw Fruit(); } ~Botch() { throw 'c'; } }; int main() { try { Botch b; b.f(); } catch(...) { cout << "inside catch(...)" << endl; } }
More Computer Questions
Can you tell what passes into and out from the computer via its ports?
What is the main purpose of "customer segmentation" in data science for business?
In the language of the computer profession, one thousand position of main storage is represented with the letter
Shortcut key to open Font dialog box is ____________.
What is the size of an int data type?