Hello World Program in C is the most simple and basic first program to print hello world in C.
Printing a simple string to the standard output screen. To print the formatted string to the standard output screen we use printf() function.

Algorithm for Hello World Program in C

  1. Define header file stdio.h in file
  2. Write the main function
  3. Print string hello world using printf() function
  4. Write the return statement
  5. End

C program to print hello world

#include<stdio.h>
int main()
{
//print hello world to screen
printf("hello world");
return 0;
}

Output:

C program to print hello world

Write A Comment