Đinh Văn Đức
New member
What will be the output of the following C++ code?
A. caught a double type
B. compile time error
C. abnormal program termination
D. runtime error
Code:
#include <iostream>
using namespace std;
void Funct();
int main()
{
try
{
Funct();
}
catch(double)
{
cerr << "caught a double type..." << endl;
}
return 0;
}
void Funct()
{
throw 3;
}
B. compile time error
C. abnormal program termination
D. runtime error