R
ravinder thakur
hello guys,
I am apparently puzzled by a very simple piece of code. What should be
the value of x after this statement ?
int x = 10;
x = x++;
I expect the value to be 10(since this is postfix). However the value
turns out to be 11. Any idea whats happening ?
Thanks
xoxo
I am apparently puzzled by a very simple piece of code. What should be
the value of x after this statement ?
int x = 10;
x = x++;
I expect the value to be 10(since this is postfix). However the value
turns out to be 11. Any idea whats happening ?
Thanks
xoxo