Unary Operators
Go Up to Unary Operators Index
Syntax
<unary-operator> <unary expression>
OR
<unary-operator> <type><unary expression>
Remarks
Unary operators group right-to-left.
The C++ language provides the following unary operators:
- ! Logical negation
- * Indirection
- ~ Bitwise complement
- ++ Increment
- -- Decrement
- - Unary minus
- & Address-of (pointer dereference)