Skip to main content

Hello World Example Program in C

1 min read Updated June 30, 2026
Share:
On this page (6sections)

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:

Frequently Asked Questions

What does this C program do?
It is a C example program that demonstrates Hello World, including the complete source code and the expected sample output.
How do I compile and run this C program?
Save the code in a `.c` file, compile it with `gcc filename.c -o program`, then run it with `./program` (or `program.exe` on Windows).
What concepts does this example use?
This example uses core C syntax, illustrating a common pattern in C programming.

Related Tutorials

Search tutorials