Simple C Program

C Program
A BASIC C PROGRAM

Programs are generally written to accomplish a particular task.

Like:

a) To display some details to the user.
b) Adding two numbers.

The following is a simple C program that does the above mentioned jobs.

EXAMPLE

To display some details

#include//This is a storage type file called header
file, which contains all the predefined functions.

void main() The code has to be written inside this portion.
{

printf(“Hai, C is easy”); This is the statement which is used for displaying some output in the screen. (Predefined function available in header file)

}

OUTPUT

Hai, C is easy