I know that ++a is faster than a++ because a++ has to first store the previous value of a at some temporary location and then increment a and then return the saved value, whereas ++a simply increments a and returns the pointer to the incremented value.
Since, both a++ and ++a are using a=a+1 as an intermediate step, wouldn't using a=a+1 itself be faster than a++ or ++a ?(since we're not returning an pointer here)
What about a+=1 ? Is it translated simply to a=a+1 and does this have a speed penalty.
There is a lot of confusion as I see it, on the net. Plz help