August 2008
Beginner to intermediate
304 pages
6h 2m
English
• Program structure
• Functions, arguments
• Global and local variables
The structure of a C program is created using functions (Figure 2.11). This is a block of code written and executed as a self-contained process, receiving the required parameters (data to be processed) from the calling function and returning results to it. Main()is the primary function in all C programs, within which the rest of the program is constructed.

When running on a PC, main() is called by the operating system, and control is returned to the OS when the C program is terminated. In the microcontroller, ...