Are you saying here that in
i = i++;
after assigning 0 to i, the incremented value is not stored back in i???
I guess I am confused by - the left side assignment address to i is calculated. Please could you explain??
Thanks.
Originally posted by William Brogden:
The order in which things happen in statement execution is what causes this result.
1) - the left side asignment address to i is calculated
2) - the current value of i is grabbed
3) - the current value of i is incremented
finally, the value of i from step 2 is stored in the address calculated in step 1, replacing the value from step 3
Bill