1.

What is the output of this program?
#include <iostream>
#include <exception>
using namespace std;
int main ()
{
try
{
int* myarray = new int[150];
cout << "Memory Allocated...";
}
catch (exception& e)
{
cout << "Standard Exception occurred..." << e.what() << endl;
}
return 0;
}

A. Memory Allocated...
B. Compilation Error
C. Runtime Error
D. Garbage Value
E. None of these
Answer» B. Compilation Error


Discussion

No Comment Found

Related MCQs