Search:

Type: Posts; User: rayan2004

Search: Search took 0.44 seconds.

  1. Replies
    8
    Views
    1,961

    Re: Please help to Understand x=++x+ + +x+x++

    Wow. Thats really good explanation. I got it. Thank you for your help.
  2. Replies
    8
    Views
    1,961

    Re: Please help to Understand x=++x+ + +x+x++

    Then i get 33 which is the correct answer.

    But for my calculation i get 35 for this x = ++x + ++x + x++; But the correct answer is 33. Im trying to find where im adding extra 2.

    This is how i...
  3. Replies
    8
    Views
    1,961

    Re: Please help to Understand x=++x+ + +x+x++

    Did you mean this?

    int x=10;
    x=++x+ + +x+x++;
    System.out.println(x); // output was 33. But i counted as 35.
  4. Replies
    8
    Views
    1,961

    Please help to Understand x=++x+ + +x+x++

    Hi Please help to understand this out put of this

    int x=10;
    x=++x+ + +x+x++; // i counted the output as 35. But correct out put 33. Pls help to understand.

    This is how i counted.

    ++x...
Results 1 to 4 of 4