eguruchela

FAQ : Computer>C program

Define the structure of C Program?

The C program begins with preprocessor directives that serves to provide information about functions from standard libraries and definitions of program constants. The directives are #include and #define.
The C program consists of one or many functions, The functions are self contained block of program (set of instructions).
The C program begins with main() function, every function has a return value.
Example of C program:

#include <stdio.hm> /* preproccessor directive */ extern int a,b; extern int c; int main() { int a,b; a=7; b=8; c=a+b; printf("Sum = %d \n",c); return 0; }

Previous Page        Next Page

Programing with C