Don't increment the same variable multiple times in one statementThis tip submitted by sidra on 2010-01-31 15:15:39. It has been viewed 6655 times.
Rating of 2.6 with 5 votes
Don't write code like this! It is hard to read and might not always work as you expect, as it depends on the code generated by the compiler:
Instead be clear about the order you want the increments to happen:
printf("%d",a++) printf("%d",a) printf("%d",++a)
Help your fellow programmers! Add a tip!