Working On Chapter 16 Page 978
2. Consider The Following C++ Code:
Int Lowerlimit;
.
.
.
Try
{
Cout<<"entering The Try Block."<<endl;
If (lowerlimit < 100)
Throw Exception("lowe r Limit Violation.");
Cout<<"exiting The Try Block."<<endl;
}
Catch (exception Eobj)
Cout<<"exceptio n:"<<eobj.what( )<< Endl;
Cout<"after The Catch Block"<<endl;
What Is The Output If:
A. The Value Of Lowerlimit Is 50?
B. The Value Of Lowerlimt Is 150?
2. Consider The Following C++ Code:
Int Lowerlimit;
.
.
.
Try
{
Cout<<"entering The Try Block."<<endl;
If (lowerlimit < 100)
Throw Exception("lowe r Limit Violation.");
Cout<<"exiting The Try Block."<<endl;
}
Catch (exception Eobj)
Cout<<"exceptio n:"<<eobj.what( )<< Endl;
Cout<"after The Catch Block"<<endl;
What Is The Output If:
A. The Value Of Lowerlimit Is 50?
B. The Value Of Lowerlimt Is 150?
Comment