A program written in C language has a fixed structure. The structure of C Program is as follows:
Documentation Section
This section consists of comments, some description of the program, name of the programmer and any other useful points that can be referenced later.
Link Section
This section provides instruction to the compiler to link function from the library functions.
Definition Section
This section defines all the symbolic constants.
Global Declaration Section
This section consists of all the function declaration and global variables.
main ( ) Function Section
Every C program must have a main ( ) function which is the starting point of the program execution.
Subprogram
This section contains all the user-defined functions.
Click here to download the PDF file.