在C语言程序中,字符数据的输入很容易出错,尤其是和其它类型的数据混在一起时。例如下面的程序: # include “stdio.h” int main() { int a; char c; scanf(“%d”,&a);