Basic Structure Of A C Program
Documentation Section | ||||||
Link Section | ||||||
Defenition Section | ||||||
Global Declaration Section | ||||||
Main() Function Section {
} | ||||||
Sub Program Section
|
Documentation Structure:-Name Of Auther And Other Details As Comments
Link Section:-It Gives Instuction To Compiler To Link Function From System library
Defenition Section:-It Defines All Symbolic Constants eg : #include<stdio.h>
Global Declaration Section:-Use To Declare Variables .Which Is Used In More Than 1 Function
Main() Function:-Every C Program Must Have A Main() Function Consisting Of Two Parts
Declaration Part:- Declares All Variable Used In Exicution Part
Execution Part:- It Consist Of Statement to Be Executed(Atleast 1)
Note:= These Two Parts Must Be Enclosed In Opening And Closing Brackets “{“ “}”
Sub Program Section:- It Consist Of User Defined Functions
To Be Continued…..