Structure of C program
Structure of C Program:
The C program's structure is as follows:
1)Documentation:
consists of a statement that describes the programme or programmer, the issue, etc.
Ex:
/*Prog for addition of two no */
2)Link Section:
For a compiler to link a library function from a function.
Ex:
#include<stdio.h>
#include<conio.h>
3)Definition Section:
Define all symbolic constant.
Ex:
void()
4)Global Declaration Section:
For designating a variable as a global variable that can be accessed by all programme functions.
Ex:
int a=10;
5)Main Function Section:
This is the most crucial section of the programme. It includes the program's declaration and execution portions.
Ex:
main()
{
clrscr();
Printf("Hello!");
}
6)Sub Program Section:
This include user define function. This function are placed after the main function.
Ex:
void()
{
printf("value inside fun() %d",a);
}
Comments
Post a Comment