1 out of 2 rated this helpful - Rate this topic

Expressions with Unary Operators

Unary operators act on only one operand in an expression. The unary operators are:

These operators have right-to-left associativity.

Grammar

unary-expression :
postfix-expression
++unary-expression
––unary-expression
unary-operator cast-expression
sizeof .unary-expression
sizeof ( type-name )
allocation-expression
deallocation-expression
unary-operator : one of
* & + ! ~

See Also

Types of Expressions

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.