Lesson 2. The Components of a C Program
Every C program consists of several components combined in a specific way. Most of this book is devoted to explaining these various program components and how you use them. To help illustrate the overall picture, you should begin by reviewing a complete (though small) C program with all its components identified. In this lesson you learn:
The components of a short C program
The purpose of each program component
How to compile and run a sample program
A Short C Program
Listing 2.1 presents the source code ...
Get C Programming in One Hour a Day, Sams Teach Yourself, Seventh Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.