Originally posted by Michael Morris:
It is evaluated left to right:
1. y = x++ (At this point y = -1 and x now equals 0)
2. y = y + ++x (Now y = 0 and x = 1)
I thought x gets inceremented only AFTER the = operator (for #1, x++), isn't that what's pre and postfix notation all about... Oh well... :roll:
I thank you and Adrian.