The very first basic program that will be taught while learning any programming language is Hello world program. In this post, I'm going to explain about hello world C program


void main()
  printf("Hello world!");


Hello world!

Explanation: Each and every C program execution starts with a main function. So, the very first statemnt printf() function call will be invoked when the above program executed. printf function definition defined in stdio.h header file, which will push the arguments to standard output device.

In this case, the argument is "Hello world!" string constant. So, Hello world! will be pushed onto monitor screen.