First program in c programming.

Share it Please

First program consist of how to print the information on screen.Now let us start.

#include<stdio.h>              //this is called header file
#include<conio.h>             //this is called header file
main()                //global function main() is very important function
{
              clrscr();
              printf("This is my first c programming program"); 
              printf("\n this program prints data on screen");                
              getch();



}

Explaination:

Here printf function is used to print information on screen.In printf function we have to put information in " " to print on screen.

getch(); is used to wait till user press any key on keyboard.after user press key on keyboard Program will terminate.


clrscr(); is used to clear screen.