1.

What is the output of this program?
#include <iostream>
#include <exception>
using namespace std;
int main()
{
try
{
double* number= new double[200];
cout << "Memory allocated...";
}
catch (exception& excep)
{
cout << "Exception occurred:" << excep.what() << endl;
}
return 0;
}

A. Memory allocated...
B. Compilation Error
C. Exception occurred...
D. Runtime Error
E. None of these
Answer» B. Compilation Error


Discussion

No Comment Found

Related MCQs