-
What is the output of this program?
#include <iostream>
using namespace std;
int main()
{
try
{
throw 13;
}
catch (int ex)
{
cout << "Exception number: " << ex << endl;
return 0;
}
cout << "No any Exception..." << endl;
return 0;
}
-
- Exception number: 13
- 13
- Compilation Error
- Runtime Error
- None of these
Correct Option: A
If we caught a integer value means, there will be an exception, if it is not a integer, there will not be a exception.