If you have an expression like
k = i ++;
k gets the old value of i before the increment, and i increases. This copy creates a performance impact and is not required with pre-incrementation. But sometimes both of them are not interchangeable. In this example with
k = ++ i;
you will get a different value for k.
source share