Vidyalelo
C++ Programming · Q237

C++ miscellaneous

Programming · C++ Programming · question 237

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
Answer
B.
Outer Catch
C.
Inner Catch
Outer Catch
D.
Error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board