++ a means incrementing the first and then returns the expression. (a changes, and the expression evaluates to + 1)
a ++ means evaluating a (so erm, a) and then increment it. Thus, a is passed, but then the value of a then (that is, later) changes to a + 1.
Martin milan
source share