Tuesday, August 28, 2007

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