Basic structure of C program
Let’s see what the basic
structure is
#include<header_file(1).h>
#include<header_file(2).h>
….
.. //all header files are to declared first
….
#include<header_file(n).h>
main() //
main()function is the first function which is executed by a C program
{ //start of the program
Statement(1);
Statement(2);
Statement(3);
Statement(4);
… //N number of statements can be written
…. //All C Statements are written within main function
……
…..
Statement(n);
} //end of the
program
No comments:
Post a Comment