Program to Read an Input Keystroke using C Language

**Note: To perform this I have used Dev c++ tool. It is checked and compiled.

We can simple use getchar() to read the input character in C language

Code:
#include<stdio.h>
void main(){
char c;
printf("\n\n*****************Program to Read an Input Keystroke******************\n\n");
printf("Enter a Character: \n");
c=getchar();
printf("Your Input Is: %c ",c);
}

OUTPUT:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.