virtualsaum huk wrote: . . . the increment happens after assigning it to variable on left side of '=', . . .
No, it doesn't. Postincrement has the highest precedence of any operator, so the postincrement is performed before the assignment. It is not at all easy to understand, because the increment is applied to
i. The value of
i++, however, remains equal to the old value of
i. So after incrementing
i, you are re-assigning it its old value.
Marlene Miller's postings in that old
thread are good.