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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for