This documentation is archived and is not being maintained.

7.6 Unary operators

Visual Studio .NET 2003

The +, -, !, ~, ++, --, and cast operators are called the unary operators.

unary-expression:
primary-expression
+   unary-expression
-   unary-expression
!   unary-expression
~   unary-expression
pre-increment-expression
pre-decrement-expression
cast-expression
Show: