Results 1 to 11 of 11

Thread: confuse

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2003
    Posts
    62

    confuse

    #include <iostream>
    using std::cout;

    int main()
    {
    int a;

    int b = 7;

    a = ++b + ++b - --b + --b;
    cout << a;
    return 0 ;
    }


    y the output in c++ is 17??

    should be 16 right?? anyone may clarify me about this???

    thanks in advance ...hehe
    Last edited by Little; Mar 28th, 2003 at 08:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width