Is x += 1 more efficient than x = x + 1?
Just to give you a “real-world” example, consider this program: int main() { int i = 0; i += 1; i++; i = i + 1; return 0; } Compiling it with GCC, in Darwin 11 with the following flags: -S stop in assembler -m32 to 32-bit platform, just to simplify things a bit Will … Read more