Possible duplicate:
Is there a performance difference between I ++ and ++ I'm in C ++?
I understand that:
i++;
It is estimated that more instructions are required than
++i;
Because it generates an intermediate result that you do not need to use, so people put "++ i" in lines of code that are not needed for the intermediate result.
However, compilers are really smart, and they can determine if the result is used or not. They can tell all about things. But they are not magical
So, I'm curious that on modern compilers, does any other option really matter, or is it just compiling with the same machine code?