Getc Example
#include <stdio.h>
int main(void)
{
char ch;
printf("Input a character:");
/* read a character from the standard input stream */
ch = getc(stdin);
printf("The character input was: '%c'\n", ch);
return 0;
}
int main(void)
{
char ch;
printf("Input a character:");
/* read a character from the standard input stream */
ch = getc(stdin);
printf("The character input was: '%c'\n", ch);
return 0;
}