User manual

mikroBasic PRO for PIC32
MikroElektronika
215
Qualier volatile
The qualier volatile implies that a variable may change its value during runtime independently from the program.
Use the volatile modier to indicate that a variable can be changed by a background routine, an interrupt routine, or I/O
port. Declaring an object to be volatile warns the compiler not to make assumptions concerning the value of an object
while evaluating expressions in which it occurs because the value could be changed at any moment.
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 PIC32:
- Arithmetic Operators
- Bitwise Operators
- Boolean Operators
- Relational Operators
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 Asociativity
4 2
@ not + -
3 3
* / div mod and << >>
2 2
+ - or xor
1 2
= <> < > <= >=