1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is printend by the following program frangment?

Discussion in 'C++' started by Albaniankool, Apr 19, 2007.

  1. Albaniankool

    Albaniankool New Member

    Joined:
    Apr 18, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    What is printend by the following program frangment? ( In both cases, ch is of type char.)

    for (ch = 'd' ; ch <= 'g' ; ch++)
    cout << ch;
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    Shouldn't it be defg and also I have moved the thread from Advance C++ to Begining C++.
     

Share This Page