2.7. PIC16 C More Data Types
• Arrays and strings
• Pointers and indirect addressing
The data in a C program may be most conveniently handled as sets of associated variables. Variables occur more frequently as the program data becomes more complex, but only the basics are mentioned here.
Arrays are sets of variable values having the same type and meaning. For example, each word in a text file is stored as a character array, a sequence of ASCII codes. This is also referred to as a string. A numerical array might be a sequence of voltage readings from an analog input in a test system or controller. The program ARRAYS.C (Listing 2.18) shows how they can be created and displayed. The arrays are declared using a collective name and ...