Originally posted by Jinny Morris:
...I tried the expression: j = ++i++; where both i and j had been declared as integers, and i had been initialized at 1.
I received the compile error: "unexpected type; expected variable; found value"...
Incrementors and decrementors can only be applied to
variables, because the result is assigned back to that variable. They cannot be applied to
values. In evaluating the expression ++i++, first ++i is evaluated. This results in a
value, and you cannot apply the postfix incrementor to a value.