- You can use increment / decrements operators to increase or decrease the value of any variable instantly by a number.
- These are being given below.
Operators
| Description |
++ (increment) | This is a unary operator. It increases the value of the operand by a number. When it seems before the operand, the value is increment first and is used later. When this operator operates after operand, the increment after the value of the operand is used. |
--(decrements) | This is also a unary operator. This decreases the value of the operand by one number. When it is used before the operand, the value decreases before the value is used. When it is used after the variable, the value is first used and later decreases. |