Friday, 14 February 2014

Structure of 'C' language Program

*[Global Declaration]
  [Main function]
       *[Local Declaration]
        [Executable Section]
*[User Defined Function]
       *[Local Declaration]
       *[Executable Section]

where "*" stands for optional.

Global Declaration

In Global Declaration,one can declare all the variables or data names which are used anywhere in the program.

Main Function

The main function is also called "The Driver of the 'C' Program" because all the statements or commands of 'C' language are executed by the main function.

Local Declaration

In Local Declaration,on can declare all the variables or data names which are used only within specific section of the program.

User-Defined Functions

These functions are also called as "Special Assistants of the users" which are used to perform any specific task or operation according to the user.

No comments:

Post a Comment