i += a should be equivalent to i = i + a. In the case where a == 1, this is supposedly less efficient as ++i as it involves more accesses to memory; or will the compiler mak
Unless a is defined a const int == 1 how can the compiler know at compile time that a == 1?
So the answer must be no, the compiler cannot compile this to ++i.