Operatori unari CC Unary Operators

Gli operatori unari compaiono prima dell'operando e vengono associati da destra a sinistra.Unary operators appear before their operand and associate from right to left.

SintassiSyntax

unary-expression:unary-expression:
postfix-expressionpostfix-expression

++ unary-expression++ unary-expression

-- unary-expression-- unary-expression

unary-operator cast-expressionunary-operator cast-expression

sizeof unary-expressionsizeof unary-expression

sizeof ( type-name )sizeof ( type-name )

unary-operator: uno traunary-operator: one of
& * + - ~ !& * + - ~ !

Vedere ancheSee Also

Operatori CC Operators