1.getchar()
2.putchar()
getchar() is used to read a character from keyboard and store this character into a memory location .you have to press enter key after typing a character .
the syantax is show on below .
char varname = getchar();
putchar() is used to display a character store in the memory location on the screen.
# include<stdio.h>
#include<conio.h>
void main()
{
char x;
char y=’n’;
printf(“enter one letter terminated by enter key”);
x= getchar(y);
putchar(x); //printf(“%d”,x);
}
output:–
enter one character m
m