2008-02-24 23:10:41 UTC
x += ++x + ++x - x--;
what would x now be? my compiler is telling me 5 but using Bradleys answer I am doing:
increment x twice so x = 3.
x += 3 + 3 - 3--
x += 3 + 3 - 2
x += 4
x = 3 + 4 = 7
AHHH!