In this article we will learn what is the structure of C language in detail so if you have any doubt then you may stay with this article.
![]() |
| Structure of C Programming language |
In this article we are going to discuss about the Structure of C Programming or Structure of C language in details.
Structure Of C Programming language
Before discussing on Structure of C Programming let we understand what is meaning of structure?,structure is nothing but it is type of arrangement of element or thing.
In the same way Structure of C Programming tell us what is the format of writing a program in C programming language and Structure of C Programming is divided into six section.
- Documentation Section
- Link Section
- Definition Section
- Global declaration Section
- Main function Section
- Sub program Section
1.Documentation Section in C
The documentation section is a part of program where the programmer give details associated with his/her program.In this section generally give the name of the program,the details of author and other details like the time of coding and description.this section gives the overview of the of the program.
2.Link Section in C
The link section is one of the most important part of C Programming because it is used to declare all the header file that will used in the program this leads to compiler being load to link the header file to the system library.
3.Definition Section in C
In this section of c programming language, programmer define different constant value and the macros are define in this part.
4.Global declaration Section in C
Global declaration section are those section of program which is available out from the main() function,global variable and all the user define function are declare in this section of the program.
5.Main( ) function Section in C
This section is most important section in C programming because every C program can't be run without main() function, this main() function contain two parts Declaration,Execution.
Declaration part of Main( ) Function in C is the part where all the variable are declare.
Execution part of Main( ) Function in C is a set of instruction which perform by the compiler both the declaration and execution part are insight the braces.
Example:-
int main()
{
int a=10,b=20,c;
c=a+b;
printf("%d,C);
}
6.Sub Program Section in C
All the user define function are define in this section of the program.
Example:-
int add(int a,int b)
{
return(a+b);
}
Conclusion
In this article we have learnt about Structure of C Programming in details but if you any doubt or query after reading this article then please comment below,i will try to resolve your doubt.
