Showing posts with label WAP to enter character by using getch ( ) function. Show all posts
Showing posts with label WAP to enter character by using getch ( ) function. Show all posts

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