Question OOP-EXC-0037
EasyWhat is the output of this code?
#include <iostream>
using namespace std;
int main() {
try {
throw 5;
} catch (int e) {
cout << e * 2;
}
}
- A.
Compilation error
- B.
10
- C.
Sign up free to see the answer and a step-by-step explanation.