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
SHORT QUERIES
How to Extract Numbers from String in PHP
Last Updated: November 3, 2023
How to Replace Space with Underscore in PHP
Last Updated: November 3, 2023
How to Concatenate two or more string in PHP
Last Updated: October 24, 2023
How to get Yesterday and Tomorrow Date in PHP
Last Updated: October 24, 2023
How to get Country State City by IP Address in PHP
Last Updated: October 24, 2023
View all