Every beginners starts learning of C programming from a basic C program that prints “hello world”. The program that prints “hello world” is known as Hello World program in any programming language.
Basic C Program/ Hello World Program
Following is a basic C program that prints hello world in the output screen.
#include<stdio.h> is the command that tells the compiler to include the header file stdio.h.
C has many pre built functions. These functions are divided into many categories and each category is stored in different files known as header files.
stdio.h is a header that used to include standard input.output functions. In the above program we uses the function
printf() to print “hello world”, so in order to work this function we must include the header file stdio.h.