Unary operators act on single operands. C language supports three unary operators unary minus,increment,and decrement operators.
A.unary minus>>>Unary minus (-)operators is strikingly different from the binary arithmetic operator that operates on two operands and subtracts the second oprend from the first oprends.
The unary operators is sign negative value
Ex: int a,b=10;
a=-(b)
Here this is value is changed in negative value by minus operators
B.increment operator:The increment operator that increases the value of its operand by 1.
It sign (++).
Ex . int a,b=10;
b++; //then b=11
c.Decrement operators:it is similar to decrement operator but it decreases the value by 1.
It sign (–).
Ex int a,b=10;
b–;//then value is b =9
$it is two variant
Prefix and postfix((pre increment and pre decrement)
Its sign(++x and –x).