Hello people!
Let us learn basic structure of c-program :-
[1] Document Section : It consists of set of comments lines that consists name of the program, author an
and other details.
[2] Link Section : To include header file we need instruct the compiler from system library, such as #include (header file) comment.
[3] Definition Section : It defines all symbolic constants, such as using (#) comment.
[4] Global Declaration Section : The variables and functions that are needed are declared in this section.
[5] Main Function Section : Every c-program must have one main function section.
It is the main starting point of the program.
~It has two parts,
{a} Declaration part - It declares all variables that are used in the main function.
{b} Executable part - It contains statements used in the program and is executed by the compiler and thus gives the desired output.
[6]Subprogram Section : It defines all the functions other than main function.