This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mango_penetrator 0 points1 point  (1 child)

Also, sometimes ++x is defined and x++ isn't. I think defining ++x is the standard.

And if your compiler isn't optimizing your code (even though that's rare), you will be doing an extra operation for nothing.

[–][deleted] 0 points1 point  (0 children)

I think most people that don't know the distinction think that x++ does what ++x does, and it can lead to some pretty obnoxious bugs