1.

What is the output of this program?
#include <iostream>
using namespace std;
#include
#include
void Function()
{
cout << "Function() was called by terminate()." << endl;
exit(0);
}
int main()
{
try
{
set_terminate(Function);
throw "Out of memory!";
}
catch(int)
{
cout << "Integer exception raised..." << endl;
}
return 0;
}

A. Compilation Error
B. Runtime Error
C. Integer exception raised...
D. Function() was called by terminate().
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs