Most efficient way of incrementing: += Or i+1 Or i++ ?
Let's discuss which of the following ways of incrementing is the most efficient. Take a look at the following ways of incrementing -
I:
i += 1;
II:
i = i + 5;
III:
i++;
1 & 2 may be the same; but still there exist different styles (I dare say) to increment. What do you think is the most efficient way of incrementing?