Skip to main content

Hello World Example Program in C

1 min read
Share:
On this page (5sections)

About this page

This is an example program in the Simple Example Programs group — focused on running Hello World and seeing output. It uses the classic conio.h style from older C courses.

For a line-by-line explanation of the same concept, see the tutorial: Hello World - Simple C Program.

MAJOR PARTS:

  • Header Files Declaration
  • Main Function - int main()
  • Other Functions(Optional)

EXAMPLE PROGRAM:

/* Example Program For Hello World In C Programming Language
  little drops @ thiyagaraaj.com
  Coded By:THIYAGARAAJ MP       */

// Header Files
#include<stdio.h>
#include<conio.h>

//Main Function
int main()
{
  //Standard Ouput Statement
  printf("My First C Program");

  // Wait For Output Scree
  getch();

  //Main Function return Statement
  return 0
}

SAMPLE OUTPUT:

My First C Program

Learn the concept first, then study the code:

Related Tutorials

Search tutorials