mikroC - C Compiler for Microchip PIC microcontrollers
OPERATORS
Operators are tokens that trigger some computation when applied to variables and
other objects in an expression.
mikroC recognizes following operators:
- Arithmetic Operators
- Assignment Operators
- Bitwise Operators
- Logical Operators
- Reference/Indirect Operators
- Relational Operators
- Structure Member Selectors
- Comma Operator
- Conditional Operator
- Array subscript operator
- Function call operator
-
sizeof
- Preprocessor Operators
Operators Precedence and Associativity
There are 15 precedence categories, some of which contain only one operator.
Operators in the same category have equal precedence with each other.
Table on the following page sums all mikroC operators.
Where duplicates of operators appear in the table, the first occurrence is unary, the
second binary. 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.
page
100
,
? :
[]
()
Operator
and
#
##
MikroElektronika: Development tools - Books - Compilers
(see Pointer Arithmetic)
(see Structure Member Access)
(see Comma Expressions)
(see Arrays)
(see Function Calls)
(see Preprocessor Operators)
mikroC
making it simple...
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?