Structure of C programming
- Document section
- Link section
- Definition section
- Global variable section
main()
{
Declaration section
Execution section
}
user defined functions
Function 1
Function 2
Function 3
..
Function n
- Document section :-
This section is optional part and this part is not executed by the computer/software. It is just ignored.
If this part is in single line we can mention it by double slash ( // ). double slash should be before the starting of the line and after the end of line.
e.g. // This is an example //
If this part is in multiple lines we can mention it by slash star ( /* )and star slash ( */ ). slash star and star slash should be before the starting of the line and after the end of line respectively.
e.g. /* This an example of documentation section. Everything is ignored by the compiler or computer written in this section. Follow my blog for latest updates. */
- Link section :-
This section is compulsory in the programming.
Header files :-
There are number of header files some of them are
- stdio.h
- conio.h
- string.h
- math.h
- graphics.h
Syntax
#include<headerfile>
e.g
#include<stdio.h>
#include<conio.h>
#include<math.h>
# - preprocessor directive

Comments
Post a Comment