Operators Precedence and Associativity
There are 4 precedence categories in mikroBasic PRO for PIC32. Operators in the same category have equal precedence with each other.
Each category has an associativity rule: left-to-right (→), or right-to-left (←). In the absence of parentheses, these rules resolve the grouping of expressions with operators of equal precedence.
| Precedence | Operands | Operators | Associativity |
|---|---|---|---|
| 4 | 1 | @ not + - | ← |
| 3 | 2 | * / div mod and << >> | → |
| 2 | 2 | + - or xor | → |
| 1 | 2 | = <> < > <= >= | → |
Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
What do you think about this topic ? Send us feedback!



