Hi,
I tried this code.
The output printed is 10 and not 11. After first increment value gets incremented to 10. That is understood. But for post increment even the increment happens after assigning it to variable on left side of '=', the incremented value should get stored in 'i' thereby making it 11. In C/C++ , it prints 11 as expected but how come in Java the value remains 10.
Please help clear this doubt
Thanks