Structure Of  C Pprogramming Language And All Componets In Details

 

Structure of C Programming Language

DOCUMENTATION SECTION

LINK SECTION

DEFINITION SECTION 

GLOBAL DECLARATION SECTION 

MAIN FUNCTION () SECTION
{
            A) DECLARATION PART
            B) EXECUTABLE PART
}
   SUBPROGRAM SECTION

   FUNCTION 1  
   FUNCTION 2                  ( USER – DEFINED FUNCTION )
  
 -----------------
 ----------------
  FUNCTION  N

Document section


The documentation section consists of a set of comment lines giving the name of the program the Authors and other details which the programmer would like to use later.

Link section

The link section provides instruction to the compiler to link functions from the system library.

Definition section

The definition section defines all symbolic constants.

Global declaration section

There are some variable that are used in more than one function such variable and are declared in the global declaration section.

Main function () section

Every c program must have one main() function this function contains two parts declaration  part and execution  part the declaration part declare all the variable used in the executable part there is at least on statement in the executable part . 

There is at least one statement in the executable parts begins at that must appear between the opening and closing braces.
The program execution begins at the opening brace and the closing braces.
The closing brace of the main function section is the logical end of the program.
All statements in the declaration and executable parts end with a semicolon.

Subprogram section

The subprogram section contains all the user defined functions that are called the main function.



Read This Also

ADVANTAGE AND DISADVANTAGE

Post a Comment

Please do not any spam link in the comment

Previous Post Next Post