Increment and Decrement Operators.
The operator for increment is '++' and decrement is '-'. These operators enhances or decrease the value of a variable on which they are operated, by one(1). They can be used as prefix or postfix to the variable, and their meaning altersdepending on their usage. When used as prefix, the value of the variable is incremented/ decremented before using the expression. But when used as postfix, its value is first used and then the value is incremented or decremented.
e.g.
--x;
x--;
In the above example it does not matter whether the decrement operator is prefixed or suffixed. It will produce the similar result.