Program structure in C

Program structure in C  :

Documentation section :

This section contains the documentation (info) of the program

Link Section :

In this section, we include the necessary header files or link c source codes in the file.

Definition Section :

Here, we define a variable using pre-processor directives.

Global declarations :

Global declaration of the variables is done which can be accessed in all the parts of programs.

Function prototype declarations :

Here, a prototype of the function is defined before their actual use.

Main function :

Main function of the program is written here.

User defined function definitions :

Defining the user defined functions.
e.g.

 

Leave a Reply

Your email address will not be published. Required fields are marked *