C has two way useful operator not generally found in other languages, these are the increment (++) and decrement (--) operators. The "++" adds one to the variable and "--" subtracts one from the variable. These operators are called unary operators. Because they acts upon only one variable.

Unary Operator

  Operator   Meaning
++X Pre increment
--X Pre decrement
X++ Post increment
X-- Post increment

void main()
int a=10;

Run Example >

< Previous Next >

Privacy Policy Terms of Service About
Creative Commons License
This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.