Basic Structure of C program
Documentation Section
This section consists of comment lines that embody the name of technologist, the author and alternative details like time and date of writing the program. Documentation section helps anyone to urge a summary of the program.
Link Section
The link section consists of the header files of the functions that are employed in the program. It provides directions to the compiler to link functions from the system library.
Definition Section
All the symbolic constants are written in the definition section. Macros are referred to as symbolic constants.
Global Declaration Section
The international variables that may be used anyplace within the program are declared in the global declaration section. This section conjointly declares the user-outlined functions.
main() operate Section
It is necessary to have one main() operate section in each C program. This section contains 2 components, declaration and workable half.
The declaration half declares all the variables that are employed in workable part. These 2 components should be written in between the gap and shutting braces.
every statement within the declaration and workable half should finish with punctuation (;). The execution of the program starts at gap braces and ends at closing braces.
Subprogram Section
The software package section contains all the user-outlined functions that are wont to perform a selected task. These user-outlined operates are known as within the main() function.