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