Hello World Example Program in C
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
Related Pages
Learn the concept first, then study the code:
- C Programs — Browse all C Programs.
- Hello World - Simple C Program — Tutorial — your first C program explained line by line.
- If Statement Example Program In C Programming Language — More in simple example programs.
- If else Statement Example Program In C Programming Language — More in simple example programs.