Wow. Thats really good explanation. I got it. Thank you for your help.
Type: Posts; User: rayan2004
Wow. Thats really good explanation. I got it. Thank you for your help.
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...
Did you mean this?
int x=10;
x=++x+ + +x+x++;
System.out.println(x); // output was 33. But i counted as 35.
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...