Syntax of C

Separate Compilation of Source Files

Large C programs are typically written as a collection of separate source files, each declaring related functions and data, which are compiled separately.

  1. To pass information between files, special header files (with names of the form something.h) are used.

  2. For routines in the C-library, the necessary header files are available in a system header file library. For user-defined routines, the user can produce his own header files.