Write a c program to print hello world

Write a  C program to print the Hello world. You will learn how to print “Hello World” on the screen using C programming in this example. You should be familiar with the following C programming fundamentals in order to follow along with this example.

#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}

Hello World

How to execute the hello world program in c

The stdio.h file includes functions to take input and display output, such as scanf() and printf().

The application will not compile if you use the printf() method without include stdio.h. printf() is a library function that displays formatted output.

Printf() prints the text Hello World on the screen in this application.