C++ Programming FROM PROBLEM ANALYSIS TO PROGRAM DESIGN D.S. MALIK FOURTH EDITION

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CWilliam912
    New Member
    • Mar 2008
    • 4

    C++ Programming FROM PROBLEM ANALYSIS TO PROGRAM DESIGN D.S. MALIK FOURTH EDITION

    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?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    The easiest way to see what the output is to compile the code.

    What do you get?

    Comment

    • newb16
      Contributor
      • Jul 2008
      • 687

      #3
      If you don't caps it at least compiles.

      Comment

      Working...