Hello World Program Explaination

First C Program!!!

We have learned enough basics.
So, now let's try out programs.

Let's start with first program.

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

Output: 



Meaning of terms:

  1. <stdio.h>  This is header file. Its fullform is Standard Input Output. 
  2. void main()  It is function in which we have all our code written.
  3. printf()  It is a function which prints anything within parenthesis brackets i.e. () and double quotes i.e.  " "
  4. Note: Always write semicolon in front of all statements (except those having loops or conditions or main function).

No comments:

Post a Comment