Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
OPERATORS
Operators are tokens that trigger some computation when being applied to variables
and other objects in an expression.
There are four types of operators in mikroBasic PRO for AVR:
- Arithmetic Operators 
- Bitwise Operators 
- Boolean Operators 
- Relational Operators 
OPERATORS PRECEDENCE AND ASSOCIATIVITY
There are 4 precedence categories in mikroBasic PRO for AVR. 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 oper-
ators of equal precedence.
145
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroBasic PRO for AVR
CHAPTER 5
Precedence
Operands
Operators
Associativity
4
1
@   not   +   -

3
2
*   /   div   mod   and   <<   >>

2
2
+   -   or   xor

1
2
=   <>   <   >   <=   >=