#
Operator Type | Operator Symbol | Operation Performed |
Arithmetic | * | Multiply |
/ | Division | |
+ | Add | |
– | Subtract | |
% | Modulus | |
+ | Unary plus | |
– | Unary minus | |
Logical | ! | Logical negation |
&& | Logical and | |
|| | Logical or | |
Relational | > | Greater than |
< | Less than | |
>= | Greater than or equal | |
<= | Less than or equal | |
Equality | == | Equality |
!= | inequality | |
Reduction | ~ | Bitwise negation |
~& | nand | |
| | or | |
~| | nor | |
^ | xor | |
^~ | xnor | |
~^ | xnor | |
Shift | >> | Right shift |
<< | Left shift | |
Concatenation | { } | Concatenation |
Conditional | ? | conditional |