Hello World Program in C
Description: The first C program to print the Hello World in the output screen.
Implementation
1 2 3 4 5 6 |
#include<stdio.h> int main() { printf("Hello World"); return 0; } |
Output:

Explanation
1 |
#include<stdio.h> |
This is the compiler statement to include the standard input and output header files in the program.
1 |
int main() |
The starting point of the C program and int represents the return type of the program.
1 |
printf() |
This is the function to print the string which is given in the double quotes. In this program,Hello world is a string and printf function display the same in the output screen.
1 |
return 0 |
The return value of the program specified using return statement.After the successful execution of the program,the value 0 returns here.
C Hello World Program without printf
1 2 3 4 5 6 |
#include<stdio.h> int main() { puts("Hello World"); return 0; } |