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 ();

}


Labels