increment operator- help me please

Discussion in 'C' started by ajayfame, Oct 2, 2010.

  1. ajayfame

    ajayfame New Member

    Joined:
    Oct 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    please help me with this.....

    a=1;

    b = a++ + ++a+ ++a;

    the output is coming b=7...


    can any1 plzz explain
     
  2. jimblumberg

    jimblumberg New Member

    Joined:
    May 30, 2010
    Messages:
    120
    Likes Received:
    29
    Trophy Points:
    0

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice