0
What is the output of the following C++ program?
#include <iostream>
using namespace std;
void f() {
try { throw 1; }
catch (int) { cout << "A"; throw; }
}
int main() {
try { f(); }
catch (int x) { cout << "B" << x; }
cout << "C";
}- AA1BC
- BAB1C
- CAC
- DB1C
Correct answer: B