First C program

#include <stdio.h>: Includes the standard input output library functions.

int main(): The main() function is the entry point of every program in C language.

printf(): The printf() function is used to print the data on the console.

return 0: It returns execution status to the OS, The 0 value is for successful execution and 1 for unsuccessful execution.


  • All statements must be entered in small case letters.

  • Every C statement must end with a semicolon(;). The semicolon acts as a terminator.

  • C language has no specific rules for the position at which statement is written.Hence,it is also known as free-form languag

Flow of C program: