1.

#include <iostream>using namespace std;int main(){   int P = -1;   try {      cout << "Inside try";      if (P < 0)      {         throw P;         cout << "After throw";      }   }   catch (int P ) {      cout << "Exception Caught";   }   cout << "After catch";   return 0;}
14.What is the output of this program?

A. Derived Exception
B. Base Exception
C. Compiler Error
D. None of the above
Answer» C. Compiler Error


Discussion

No Comment Found

Related MCQs