Statements such as this:
result in undefined behavior. Read up on sequence points.
Also, read the "Before you make a query" thread, see the upper right corner of this page. By not using code tags, you are being rude to those you are asking for help.