C Programming Examples Tutorial Index
C String Programs

In this tutorial, a basic C program is demonstrated to print Hello world as an output on the screen. The primary aim of this C program is to explain to beginners how the printf() function works.

Example C Program:
//C program to print hello world on the screen as output.
#include <stdio.h>

void main ()
  printf ("Hello World");

Program Output:

Hello World