1.

What is the output of this program?
#include 
using namespace std;
void function();
int main()
{
try
{
function();
}
catch(double)
{
cout << "caught a double type exception..." << endl;
}
return 0;
}
void function()
{
throw 5;
}

A. abnormal program termination
B. caught a double type
C. Compilation Error
D. Runtime Error
E. None of these
Answer» B. caught a double type


Discussion

No Comment Found

Related MCQs