Q237
What will be the output of the following C++ code? #include using namespace std; int main() try try throw 20; catch (int n) cout << "Inner Catch "; catch (int x) cout << "Outer Catch "; return 0;
A.
Inner Catch
AnswerB.
Outer Catch
C.
Inner Catch
Outer Catch
Outer Catch
D.
Error
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board