C 一元运算符C Unary Operators

一元运算符出现在其操作数前,并按照从右到左的顺序关联。Unary operators appear before their operand and associate from right to left.

语法Syntax

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: one ofunary-operator: one of
& * + - ~ !& * + - ~ !

另请参阅See Also

C 运算符C Operators