C Unary Operators
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

C Unary Operators

Unary operators appear before their operand and associate from right to left.



++ unary-expression

-- unary-expression

unary-operator cast-expression

sizeof unary-expression

sizeof ( type-name )

unary-operator: one of

&   *   +      ~   !

© 2015 Microsoft