단항 연산자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: 다음 중 하나unary-operator: one of
& * + - ~ !& * + - ~ !

참고 항목See Also

C 연산자C Operators