The table below lists the LCF operators supported and their order of precedence (highest to lowest). Their associativity indicates in what order operators of equal precedence in an expression are applied.
| Operator | Description | Associativity |
|---|---|---|
| () | Parenthesis | left-to-right |
| ! | Logical negation | left-to-right |
| ~ | Bitwise complement | left-to-right |
| * / % | Multiplication/Division/Modulus | left-to-right |
| + | Addition | left-to-right |
| << >> | Bitwise shift left, Bitwise shift right | left-to-right |
| == | Is equal | left-to-right |
| - | Subtraction | left-to-right |
| != | Is not equal to | left-to-right |
| < <= | Relational less than/Less than or equal to | left-to-right |
| > >= | Relational greater than/Greater than or equal to | left-to-right |
| & | Bitwise and | left-to-right |
| | | Bitwise inclusive or | left-to-right |
| && | Logical and | left-to-right |
| || | Logical or | left-to-right |
| = | Assignment | right-to-left |