GE6151 Computer Programming BASIC STRUCTURE OF C PROGRAMS

BASIC STRUCTURE OF C PROGRAMS

C programs are essentially constructed in the following manner, as a number of well defined sections.

/* HEADER SECTION */

/* Contains name, author, revision number*/

/* INCLUDE SECTION */

/* contains #include statements */

/* CONSTANTS AND TYPES SECTION */

/* contains types and #defines

*/

/* GLOBAL VARIABLES SECTION */

/* any global variables declared here

*/

/* FUNCTIONS SECTION */

/* user defined functions

*/

/* main() SECTION */

intmain()

{

}

No comments:

Post a Comment