posted 22 years ago
Hi David,
The ++ operator has much higher percedence than assignment(=). Bill's steps are correctly ordered. The increment happens before (step 3) the assignment (step 4). Think of the postfix as using a special Java 'holding' area.
1. Place current value of i into holding area (move zero to holding area)
2. Increment current value of i (i now becomes 1)
3. Assign value in holding area to i (i now assigned zero)
Simple but effective,
Manfred.