Syntax:
- For value input: Variable name= getch();
- For screen holding at the end of program: getch();
Example:
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr();
char m;
printf("Enter
character:");
m=getch();
printf("The character you Entered=%c",m
);
getch();
}
Output:
Enter character:
The character u Entered=a