Program in C to demonstrate getch( ) function

Write a program in C to demonstrate getch( ) function

#include <stdio.h>

void main ()
{
            char ch;
            clrscr ();
            printf ("Enter any character: ");
            ch=getch();
            printf ("You have pressed %c",ch);
            getch ();
}


Post a Comment