Hello World Program in C

  • Tech Area
  • April 22, 2024



In this tutorial, We will see how to print Hello World in C programming language.

#include<stdio.h>
void main()
{
printf("Hello World");  //Displays the string
}

Output

Hello World

How does this program work?

To use printf() in our program, we need to include stdio.h header file using the #include <stdio.h> statement.

All valid C programs must contain the main() function. The code execution begins from the start of the main() function.

The printf() is a library function to send formatted output to the screen. The function prints the string inside quotations.


Subscribe us via Email

Join 10,000+ subscriber

Subscribe on YouTube