Character Input/Output
Read a character
File *fp;
char c;
fp = fopen(. . .);
c = fgetc(fp); from file
c = getc(fp); same as above
c = getchar(); from standard input
c = fgetc(stdin); same as above
Write a character
fputc(c, fp); write to file
putc(c, fp); same as above
putchar(c); to standard output
putchar(c,stdout); the same