C Program to print Hello World on the console

This is a simple C program that prints "Hello World!!!" string on the console or terminal. The preprocessor directive #include<stdio.h> contains definitions like printf and scanf. Function printf line prints any string that is given in double quotes.

Program

/* Print hello world in C */
#include<stdio.h>
void main()
{
	printf("Hello World!!!\n");
}
<div id="display-output"></div>

Output

Hello World!!!