Best collection of C programs
Tuesday, January 4, 2011
GETCH ( ) FUNCTION
WAP TO ENTER CHARACTER BY USING GETCH ( ) FUNCTION
#include
void main ()
{
char ch;
clrscr ();
printf ("Enter any character: ");
ch=getch();
printf ("You have pressed %c",ch);
getch ();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment