I had come across this answer to this question. In one of the line, the author mention's:
In any case, follow the guideline "prefer
++ioveri++" and you won't go wrong.
I know that ++i is slightly faster than i++, but thought that there is no reason for them to go wrong. I searched for a while, and the closest I could get to was this. It explained clearly that why is it preferred to use ++i, but not still how could you go wrong using i++.
So can anyone tell me how can i++ go wrong?
NOTE: My question isn't a dupe, as I am not asking about the performance. I have already seen that question. I am asking how can i++ be wrong as mentioned in the answer I have mentioned above.