Datasheet
CONSTANT EXPRESSIONS
A constant expressions can be evaluated during translation rather that runtime and
accordingly may be used in any place that a constant may be.
Constant expressions can consist only of the following:
- literals,
- enumeration constants,
- simple constants (no constant arrays or structures),
-
sizeof operators.
Constant expressions cannot contain any of the following operators, unless the
operators are contained within the operand of a sizeof operator: assignment,
comma, decrement, function call, increment.
Each constant expression can evaluate to a constant that is in the range of repre-
sentable values for its type.
Constant expression can be used anywhere a constant is legal.
135
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroC PRO for AVR
CHAPTER 5