The difference between ++Var and Var++ [duplicate]
tldr; Although both var++ and ++var increment the variable they are applied to, the result returned by var++ is the value of the variable before incrementing, whereas the result returned by ++var is the value of the variable after the increment is applied. Further Explanation When ++var or var++ form a complete statement (as in … Read more