View All C Programs

 Previews Example  View All C Programs Next Example 

Program to Print a Sentence in C

#include <stdio.h>
#include <conio.h>
   printf("Hello World !"); /* printf() prints the content inside quotation */
Every C program starts executing code from main() function. Inside main(), there is a printf() function which prints the content inside the quotation mark which is "Hello World !" in this case.

Hello World !