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>
 main()
{
   printf("Hello World !"); /* printf() prints the content inside quotation */
   getch();
}
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.
Result

Hello World !