C programs

C program to print hello world

It is first program of c language, in this program Plane text is print on screen.

To print the text on screen printf () function is used.

<stdio.h> is a header file used for standard input and output operation, provide basic function like printf()

Program

#include <stdio.h>

void main()

{

    printf("Hello World");

}

When Run The Program Following Output:

Hello World

Description

C Program start their execution from the main() function. This function declared as void so it doesn’t return any value.

Body of main() start from curly braces {  and end with }

And printf() is used to print text on screen.

Releted Programs

© 2017 codewmAll rights reserved.