Sunday, 11 May 2014

Getchar() function used in c

Getchar() function used in c

#include<stdio.h>                   //header file stdio.h
#include<conio.h>                   //header file conio.h
main()
{                                             //start of the program
char s;                               //variable declaration
s=getchar();                      //getchar function used
printf("you entered is %d",s);
getch();
}                                            //end of the program


No comments:

Post a Comment