mikroC
making it simple...
Type Qualifiers
Type qualifiers
ally affect the type of declared object.
Qualifier const
Qualifier
runtime. In declarations with
in the declaration.
Effectively, mikroC treats objects declared with
preprocessor constants. Compiler will report an error if trying to change an object
declared with
For example:
const double PI = 3.14159;
Qualifier volatile
Qualifier
indepent from the program. Use the
can be changed by a background routine, an interrupt routine, or an I/O port.
Declaring an object to be volatile warns the compiler not to make assumptions
concerning the value of the object while evaluating expressions in which it occurs
because the value could change at any moment.
MikroElektronika: Development tools - Books - Compilers
mikroC - C Compiler for Microchip PIC microcontrollers
and
const
volatile
implies that the declared object will not change its value during
const
const
qualifier.
const
implies that variable may change its value during runtime
volatile
are optional in declarations and do not actu-
qualifier, you need to initialize all the objects
qualifier same as literals or
const
modifier to indicate that a variable
volatile
page
91
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?