Introduction to C Program
C is a remarkable language. Designed originally by Dennis Ritchie, working at AT&T
Bell Laboratories in New Jersey, it has increased in use until now it may well be one of the most widely- written computer languages in the
world. C is a structured language. It allows variety of programs in small
modules. It is easy for debugging, testing, and maintenance if a language is a
structured one.
Structure of C program
Include header file section Global declaration section
main()
{
Declaration part Executable part
}
User-defined
functions
{
Statements
}
Include Header File Section
C program depends upon some header
files for function
definition that are used in program.
Each header file by default
is extended with .h. The header file should be included using
# include directive as given here.
Function Main
Every program written in C
language must contain main () function. The function main() is a starting
point of every C program.
The execution of the program
always begins with the function main ().
0 Comments