CPP > Beginner

What will be the output of the following program using try catch block in C++?

// exceptions
#include <iostream>
using namespace std;

int main () {
  try
  {
    throw 15;
  }
  catch (int e)
  {
    cout << e;
  }
  return 0;
}
Answers :
Time Left
Question Number : /20
Please do not press back or refresh button during this test.

Login

Register

Next Question