C 'Hello World!' Program

@codevarsity
 · 
890 views
 · 

A simple C program to display 'Hello World!' on the screen. Since, it's a very simple program, it is often used to illustrate the syntax of a programming language.

Code

#include <stdio.h>
int main()
  {
       // printf() displays the string inside quotation
       printf("Hello World!");
       return 0;
  }
}

Output

Hello World!

Comments