0
What is the output of the following C++ program?
#include <iostream>
using namespace std;
struct R { ~R() { cout << "d"; } };
void f() { R r; throw 1; }
int main() {
try { f(); }
catch (int) { cout << "c"; }
cout << "e";
}- Acde
- Bdce
- Cce
- Ddc
Correct answer: B