Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous

What will be the output of the following C++ code? #include <iostream> using namespace std; #include <cstdlib> #include <exception> void Funct() { cout << "Funct() was called by terminate()." << endl; exit(0); } int main() { try { set_terminate(Funct); throw "Out of memory!"; } catch(int) { cout << "Integer exception raised." << endl; } return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Funct() was called by terminate()

Related Computer Questions

In Windows ME, what does ME stand for? The auxiliary array used in pigeonhole sorting is called ______ Who was the first person to solve the maximum matching problem? The new name of Facebook is __________? The Euler's circuit problem can be solved in?