The increment operator (++) can be used in two ways: As demonstrated earlier, you can place the increment operator to the right of a variable, as shown next.
X++;
This expression tells C to use the current value of variable x and increment it by 1. The variable’s original value was 0 (that’s what I initialized it to) and 1 was added to 0, which resulted in 1.