C46. C Source Files


Source Files
Up to this point, we've assumed that a C program consists of a single file. In fact, a program may be divided among any number of source files. By convention, source files have the extension .c. Each source file contains part of the program, prima­rily definitions of functions and variables. One source file must contain a function named main, which serves as the starting point for the program.

No comments: