This list shows the available unary operators.
[] | indexing operator |
++ -- | post increment and decrement |
. | member access |
++ -- | pre increment and decrement |
not ! | logical not |
+ - | unary positive and negative |
~ | bitwise complement |
@ | handle of |
* / % | multiply, divide, and modulo | left to right |
+ - | add and subtract | left to right |
<< >> >>> | left shift, right shift, and arithmetic right shift | left to right |
& | bitwise and | left to right |
^ | bitwise xor | left to right |
| | bitwise or | left to right |
<= < >= > | comparison | left to right |
== != xor ^^ | equality, and logical exclusive or | left to right |
and && | logical and | left to right |
or || | logical or | left to right |
?: | condition | left to right |
= += -= *= /= = &= |= ^= <<= >>= >>>= | assignment and compound assignments | right to left |