Monday, 14 March 2016

introduction


C Program to Print a Sentence

Source Code
/* C Program to print a sentence. */
#include <stdio.h>
int main()
{
   printf("Hell world\n"); /* printf() prints the content inside quotation */
   return 0;
}

Output

Hell world

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 "C Programming" in this case.