Increment and Decrement Operators

There are increment and decrement operators are present in C.

++ Operator

++ operato is called as increment operator. This operator is used on a single operand hence it is called as unary operator. This operator adds 1 to the operand.


int a=10
a = a++ // result is 11

-- Operator

ii operato is called as decrement operator. This operator is used on a single operand hence it is called as unary operator. This operator subracts 1 from the operand.


int a=10
a = a-- // result is 9