Unary plus and minus operators ('+' and '-')

Previous Unary operators Next

In these unary + - expressions

+ expr
- expr
the expr operand must be of arithmetic type. The result is the value of the operand after any required integral promotions for the unary plus ('+') operator, or negative of the value of the operand after any required integral promotions for the unary minus ('-') operator. Floating point negation is internally executed using the fneg function.

Note that both '+' and '-' operators also have a binary form.