In C, “++†and “--“are called increment and decrement operators respectively. Both of these operators are unary operators, i.e., used on single operand. ++ adds 1 to operand and -- subtracts 1 from operand respectively.
Syntax :
increment operator: ++var_name; (or) var_name++;
Decrement operator: --var_name; (or) var_name--;