RAD Studio
ContentsIndex
PreviousUpNext
Unary Operators

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
  • ++ 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!