Sunday 13 January 1985

C Program Structure


1. Header File: C Program Start with header file inclusion. header file has extension .h.
header file contains function declaration and macro definitions that is used in c program.
header file declaration start with #include

Some of the C Header files.
1. stdio.h   Defines standard input output.
2. string.h Defines string handling function.
3. math.h  Defines common math function

Main function.
1. Every program should have one main() function.
2. There should not be more than one main() function.
3. Otherwise the compiler cannot locate the beginning of the program.
4. The empty pair of parentheses indicates that main has no arguments.

Variable.
1. In C Programming variable is declare with datatype.

Share This
Previous Post
First

0 Comments: