C/C++ Pre vs Post decrement and increment operators performance difference
- by TimK
In some of my programs I have noticed that in some cases there is a difference in speed when using either the pre(++i or --i) and post(i++ or i--) decrement operators. Sometimes pre is faster and other times post is faster. I can't seem to figure out why. Could someone please explain this to me?