Q471
What will be the output of the following C++ code? #include using namespace std; #include #include 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;
A.
Integer exception raised
B.
Funct() was called by terminate()
AnswerC.
Integer exception not raised
D.
Integer exception raised.
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board