C Hello World Program

The “Hello, World!” program is often the first program written when learning a new programming language. Its main task is to output the message “Hello, World!” to the screen in the C program.

Hello World Program in C

Open the C compiler and write the following code:

#include <stdio.h><br>
void main()<br>
{<br>
printf("Hello World");<br>
}

Now click on the compile menu to compile the Hello World program in C. And then click on the run menu to run the C program.
Output:-

Hello World

#include <stdio.h>: It is used to include the standard input and output library functions. The printf() function is defined in stdio.h.

void main(): The main() function is the entry point of every program in the C language. The void keyword indicates that it returns no value. 

printf(): The printf() function is used to print data that is specified in brackets on the console.

Check out other Programming Tutorials-


Online R Compiler

File Handling in C

Operators in C

C if else Statement

About the Author

Software Developer | Technical Research Analyst Lead | Full Stack & Cloud Systems

Ayaan Alam is a skilled Software Developer and Technical Research Analyst Lead with 2 years of professional experience in Java, Python, and C++. With expertise in full-stack development, system design, and cloud computing, he consistently delivers high-quality, scalable solutions. Known for producing accurate and insightful technical content, Ayaan contributes valuable knowledge to the developer community.