First Program in C Language

First Program in C Language

Write a program in C Language to print “Hello, World!”.

In this C Program, we will learn how to print Hello World message on the screen. It is a very simple program in C Language. You can easily understand the syntax of C Language.

Program to Print “Hello World!”

Here is the source code of the C program to Print Hello Word. The C program is successfully compiled and run on Windows Operating System. The program output is also shown below.

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


Command Prompt

Hello, World!

How “Hello, World!” program works?

  1. #include <stdio.h> includes the standard input output library functions. The printf() function is defined in stdio.h .
  2. int main() The main() function is the entry point of every program in c language.
  3. printf() The printf() function is used to print data on the console.
  4. return 0 The return 0 statement, returns execution status to the OS. The 0 value is used for successful execution and 1 for unsuccessful execution.

This Post Has One Comment

  1. nice Code

Leave a Reply

Close Menu