int和char在getchar/fgetc和putchar/fputc中的区别?
getchar
putchar
:
#include <stdio.h>int main(void){ char c; printf("Enter characters : "); while((c = getchar()) != EOF){ putchar(c); } return 0;}
#include <stdio.h>int main(void){ int c; printf("Enter characters : "); while((c = getchar()) != EOF){ putchar(c); } return 0;}
int putchar(int c)
int getchar(void)
putchar()
int
char
getchar()
int
char
?
ITMISS