Q701
What will be the output of the following C++ code? #include using namespace std; int main() int age=5; try if (age < 0) throw "Positive Number Required"; cout << age << " "; catch(const char* Message) cout << "Error: " << Message; return 0;
A.
5
AnswerB.
10
C.
15
D.
Positive Number Required
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board