Increment AND Decrement Operators in C
Types :
- Pre-Increment
- Post-Increment
Increment/Decrement Operators :
- Increment & Decrement operators are unary Operators in C .
- Unary Operators : Operators which require only one Operand
- Increment Operators : ++
- Decrement Operators : -
- Increment Operator increments the Current value by 1
- Decrement Operator decrements the Current value by 1
Example :
int a = 5,b=10
a++;
b--;
- Then New value of a = 6
- Then New value of b = 9