Home Basic Structure of C
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday1
mod_vvisit_counterYesterday0
mod_vvisit_counterThis week1
mod_vvisit_counterLast week0
mod_vvisit_counterThis month1
mod_vvisit_counterLast month0
mod_vvisit_counterAll days4219

We have: 1 guests online
Your IP: : 38.107.179.233
 , 
Today: May 21, 2012

Tracker

visitors by country counter
flag counter

Basic Structure of C Programs

1.    The C program essentially consists of header files required for library function used.
2.    Every  C program must have at least a function with the name main().
3.    To use any variable in the program, they must be declared first.
4.    The program can have more than one function.


/* comment about the program */
#include<……..>
……….
……….
/* prototype declaration here */
……….
……….
/* global variable declaration here if any */
……….
……….
void main()
{
/* variable declaration here */
/* statements */
getch();
}
return_type function_name (arg_type arg, …)
{
/* variable declaration here */
/* statement */
……….
……….
return variable_name;
}