Select the correct option to test your answer:
Computer
Plus Plus Miscellaneous
Difficulty: Medium
What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { try { try { throw 20; } catch (int n) { cout << "Inner Catch\n"; } } catch (int x) { cout << "Outer Catch\n"; } return 0; }
More Computer Questions
Which of the following methods can be used to solve the longest palindromic subsequence problem?
What is the role of the 'parent' array in the implementation of Dijkstra's algorithm?
What does the term "outlier" refer to in the context of EDA?
What will be the output of the following C code? #include <stdio.h> int main() { double *ptr = (double *)100; ptr = ptr + 2; printf("%u", ptr); }
What will be the output of the following Python code? print("xyyzxyzxzxyy".count('xyy', 2, 11))