Identifiers are arbitrary names of any length given to functions, variables, symbol-
ic constants, user-defined data types, and labels. All these program elements will
be referred to as objects throughout the help (not to be confused with the meaning
of object in object-oriented programming).
Identifiers can contain the letters
a to z and A to Z, the underscore character “_”,
and the digits 0 to 9. The only restriction is that the first character must be a letter
or an underscore.
Case Sensitivity
mikroC identifiers are not case sensitive at present, so that Sum, sum, and suM rep-
resent an equivalent identifier. However, future versions of mikroC will offer the
option of activating/suspending case sensitivity. The only exceptions at present are
the reserved words
main and interrupt which must be written in lowercase.
Uniqueness and Scope
Although identifier names are arbitrary (within the rules stated), errors result if the
same name is used for more than one identifier within the same scope and sharing
the same name space. Duplicate names are legal for different name spaces regard-
less of scope rules. For more information on scope, refer to Scope and Visibility.
MikroElektronika:
Development
tools
-
Books
-
Compilers
47
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
IDENTIFIERS