20180318 代码错题(1)

有以下程序
#include <stdio. h>
main(){
int x =35,B;
char z ='B';
B =((x)&&(z <'b'));
printf("%d\n",B);
}
程序运行后的输出结果是
1
0
35
66

答案 A  错选 B 

考察类型之间的转换,布尔值与Int型

ascii码中,大写字母排在小写字母前面

posted @ 2018-03-18 22:06  Kxzh  阅读(157)  评论(0编辑  收藏  举报