i++ => i = i + 1 i-- => i = i - 1These are post increment and post decrement operators. In general, they take the form:
<Lvalue>++ <Lvalue>--
We can also have pre increment and pre decrement operators.
++i => i = i + 1 --i => i = i - 1The difference is that the "post" operators evaluate to the value of i before the update; while the "pre" operators evaluate the the value if i after the update.
For example:
i = j = 1; if( i++ > 1) ... is false, but if( ++j > 1) ... is true.