Unary Operators

These operators have higher precedence than multiplicative operators and lower precedence than the primary operators.
+x
Functions as unary or binary as addition if it is numeric or concatenation if one of the value is string
-x
Performs numeric negation.
!x
Logical negation operator
~x
Bitwise complement.
await (Asynchronous method)
Awaits a Task. It iserts a sustension point to wait for a task to complete
&x – address of
Performs either unary or binary
*x – dereferencing
Works as a multiplication operator or dereference operator

Leave a Reply

Your email address will not be published. Required fields are marked *