In C, what is the difference between using ++i and i++, and which should be used in the incrementation block of a for loop?
++i
i++
for
Please don't worry about the "efficiency" (speed, really) of which one is faster. We have compilers these days that take care of these things. Use whichever one makes sense to use, based on which more clearly shows your intent.