February 2013
Intermediate to advanced
672 pages
16h 2m
English
The operators +, -, ++, --, ~, !, and the cast operator (§15.16) are called the unary operators.
UnaryExpression: PreIncrementExpression PreDecrementExpression + UnaryExpression - UnaryExpression UnaryExpressionNotPlusMinusPreIncrementExpression: ++ UnaryExpressionPreDecrementExpression: -- UnaryExpressionUnaryExpressionNotPlusMinus: PostfixExpression ~ UnaryExpression ! UnaryExpression CastExpression
Expressions with unary operators group right-to-left, so that -~x means the same as -(~x).
A unary expression preceded by a ++ operator is a prefix increment expression.
The result of the unary expression must be a variable of a type that is convertible ...
Read now
Unlock full access