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
#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