Question: what is the difference between pre increment and post increment a variable?
Answer: Pre increment operator is used to increment variable value by 1 before assigning the value to the variable. Post increment operator is used to increment variable value by 1 after assigning the value to the variable.