The “Hello World” program is the first step towards learning any programming language. It is also one of the simplest programs that is used to introduce aspiring programmers to the programming language. It typically outputs the text “Hello, World!” to the console screen.

C Program to Print “Hello World”

To print the “Hello World”, we can use the printf function from the stdio.h library that prints the given string on the screen. Provide the string “Hello World” to this function as shown in the below code:

// Header file for input output functions
#include <stdio.h>

// Main function: entry point for execution
int main() {

    // Writing print statement to print hello world
    printf("Hello World");

    return 0;
}