The difference is when does the increment operation take place. In post increment the value of the variable is first returned and then the variable incremented. In pre-increment the variable is first incremented and then returned.
The difference is when does the increment operation take place. In post increment the value of the variable is first returned and then the variable incremented. In pre-increment the variable is first incremented and then returned.