| Unary plus and minus operators ('+' and '-') |
| Previous | Unary operators | Next |
In these unary + - expressions
+ expr - exprthe 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.