Q761
What will be the output of the following C++ code? #include using namespace std; int main () try throw 20; catch (int e) cout << "An exception occurred " << e << endl; return 0;
A.
20
B.
An exception occurred
C.
Error
D.
An exception occurred 20
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board