C Program for unformatted input/output function getch() and putch()


// C Program for unformatted input/output function getch() and putch()



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

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

Enter any character :
the entered character is :c    
    
=================================                                           
             
C Program for unformatted input/output function getch() and putch()

Comments