Bansal Wiki is developed with the aim of supporting new generation for keeping them up-to date with this modern world either in Technology or in Education.
Pages
▼
January 20, 2013
Structure of C-program
DOCUMENTATION
It consists set of comments giving the name of the program, the inputs required by program and output that will be generated by computer. It can also contain other information about program such programmer name, date and time of creation.
LINK SECTION
It provides instruction to the computer to link with various header files. The header file is a file that contains various inbuilt functions that can be used in the program.
DEFINITION SECTION
It defines different symbolic constants.
GLOBAL DECLARATION
There are some variables that have to be used in more than one functions such variables are global variables and they are declared in this section.
MAIN FUNCTION
Every C-program contains one main function. Declaration which consists of definition of all the variables and the executable part which contains various statements that are to be executed. It also consist a sub-program section in this definition of all the user defined function are included. For execution in Turbo C (Most applied compiler)
No comments:
Post a Comment