RAD Studio |  |

Unary Operators

Syntax

Copy Code

    <unary-operator> <unary expression>

OR

Copy Code

    <unary-operator> <type><unary expression>

Remarks

Unary operators group right-to-left.

The C++ language provides the following unary operators:

- ! Logical negation
- * Indirection
- ++ Increment
- ~ Bitwise complement
- -- Decrement
- - Unary minus
- + Unary plus

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!