C Hello World

In this example, we are giving a program to display "Hello World!".


Displaying "Hello, World!":

  1. #include <stdio.h>
  2. int main()
  3. {
  4. // printf() displays the string inside quotation
  5. printf("Hello, World!");
  6. return 0;
  7. }

Output:

Hello, World!