C Programming Language

Unary minus Operator

                The operand of Unary minus operator must have arithmetic type, and the result is the –ve of its operand. The operand can be numerical constant, variable or expression. It is different from arithmetic subtraction operator (requires two operand).

Example:
      -(p+q)
      x=-y
     -10*(p+q)

Program:

Unary Minus Operator
Unary operators Home Increment and decrement operator

c program stats