Share via


C Unary Operators

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at C Unary Operators.

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

Syntax

unary-expression:
postfix-expression

++  unary-expression

--  unary-expression

unary-operator cast-expression

sizeof  unary-expression

sizeof (  type-name  )

unary-operator: one of
& * + – ~ !

See Also

C Operators