C Program for unformatted input/output function getche()


//C Program for unformatted input/output function getche() 

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("Enter any character: ");
ch=getche();
printf("\nthe entered character is: %c",ch);
getch();
}

==================
OUTPUT:-

Enter any character: c
the entered character is: c    

==================                                




                                                                               
                                                                               
                                                                                       


Comments