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