Microchip Technology SW006022-2N Data Sheet

Page of 338
MPLAB
®
 XC16 C COMPILER
USER’S GUIDE
 2012 Microchip Technology Inc.
DS52071B-page 93
Chapter 6.  Supported Data Types and Variables
6.1
INTRODUCTION
The MPLAB XC16 C Compiler supports a variety of data types and qualifiers (attri-
butes). These data types and variables are discussed here. For information on where 
variables are stored in memory, see Chapter 7. “Memory Allocation and Access”.
6.2
IDENTIFIERS
A C variable identifier (as well as a function identifier) is a sequence of letters and digits 
where the underscore character, “_”, counts as a letter. Identifiers cannot start with a 
digit. Although they may start with an underscore, such identifiers are reserved for the 
compiler’s use and should not be defined by your programs. Such is not the case for 
assembly domain identifiers, which often begin with an underscore, see the MPLAB 
Assembler, Linker and Utilities for PIC24 MCUs and dsPIC DSCs User’s Guide 
(DS51317)
.
Identifiers are case sensitive, so main is different from Main.
All characters are significant in an identifier, although identifiers longer than 31 
characters in length are less portable.