Program to print Hello World in c language

Here’s a simple program in C language to print “Hello, World!” to the console:

#include <stdio.h>

int main() {
    printf("Hello, World!");
    return 0;
}

In this program, we use the printf() function to print the string “Hello, World!” to the console. The printf() function is a standard library function in C that is used to display output on the console.

The int main() function is the entry point of the program, and it returns an integer value indicating the status of the program’s execution. In this case, we return 0 to indicate that the program executed successfully.

When you run this program, the output will be:

Hello, World!

This is a simple and classic example of a C program that is used to introduce beginners to the language.

Posted in: C