C “Hello World” program


Let’s start with the real coding part by practicing several programs in the C language. Hopefully, you all have completed the series of C language tutorials. Now we will practice every program that comes under C language.

Meanwhile, before proceeding, learners should go through the C language tutorial series to get depth knowledge about the basic concepts.

Implementing the theory part in the program reflects the identity of a real programmer.

There is no glory in practice, but there is no glory without practice.

We are starting with the very basic code that we had already discussed in the ‘Introduction’ of c language i.e., printing “Hello world” on the screen.

As already said, it is a very basic code, thus requiring no complex coding part. It is just to make the learners aware of how to start coding in the C language.


#include<stdio.h > //”#include” is a preprocessor directive, and it makes the header file “stdio.h” available for us.

int main() // function 'main' declared with 'int' return type

{ // body of 'main' function begins

printf("Hello World");

return 0;

} // body of 'main' function closes here




‘printf’ function is used for printing the text on the output screen that the user wants. The code aimed to write “Hello World” thus it is written inside the body of the ‘printf’ function and enclosed in “ ” commas.

The text enclosed between double commas (“ ”) is printed on the output screen as it is.


  • Barry Allen

    A Full Stack Developer with 10+ years of experience in different domain including SAP, Blockchain, AI and Web Development.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.