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

Your email address will not be published. Required fields are marked *

%d bloggers like this: