mikroC
making it simple...
EXPRESSIONS
mikroC - C Compiler for Microchip PIC microcontrollers
An expression is a sequence of operators, operands, and punctuators that specifies a computation. Formally, expressions are defined recursively: subexpressions can be nested without formal limit. However, the compiler will report an
In ANSI C, the primary expressions are: constant (also referred to as literal), iden- tifier, and (expression), defined recursively.
Expressions are evaluated according to certain conversion, grouping, associativity, and precedence rules that depend on the operators used, the presence of parenthe- ses, and the data types of the operands. The precedence and associativity of the operators are summarized in Operator Precedence and Associativity. The way operands and subexpressions are grouped does not necessarily specify the actual order in which they are evaluated by mikroC.
Expressions can produce an lvalue, an rvalue, or no value. Expressions might cause side effects whether they produce a value or not.
Comma Expressions
One of the specifics of C is that it allows you to use comma as a sequence operator to form the
expression_1, expression_2;
results in the
|
| page |
|
MikroElektronika: Development tools - Books - Compilers | 113 | ||
|
|