Explain basic structure of c language

Explain basic structure of c language 

 Documentation section : The documentation section consists of a set of comment lines giving 

the name of the program, the author and other details, which the programmer would like to use 

later.

1. Link section : The link section provides instructions to the compiler to link functions from 

the system library.

2. Definition section : The definition section defines all symbolic constants.

3. Global declaration section : There are some variables that are used in more than one 

function. Such variables are called global variables and are declared in the global declaration 

section that is outside of all the functions. This section also declares all the user-defined 

functions.

4. main () function section : Every C program must have one main function section. This 

section contains two parts; declaration part and executable part.




Previous Post Next Post