Output is undefined. What you're doing is illegal.
The general rule is you cannot modify a variable more than once in the same sequence point (ie: a semicolon). Since you are modifying the variable twice in the same semicolon, you will get unexpected results.