printf("Please enter a character.\n");
scanf("%c", &ch);
printf("The code for %c is %d.\n", ch, ch);
return 0;
}
第二个printf编译完的输出结果是 The code for ? is -52
这是编译器的问题吗 怎么设置啊?
...全文
125打赏收藏
为什么第二个printf显示错误呢?
#include int main(void) { char ch; printf("Please enter a character.\n"); scanf("%c", &ch); printf("The code for %c is %d.\n", ch, ch); return 0; } 第二个printf编译完的输出结果是 The code for ? is -52 这是编译器的问题吗 怎么设置啊?