问题
单项选择题
有以下程序
main()
unsigned char a=2,b=4,c=5,d;
d=a|b;d&=c;printf("%d\n",d);
程序运行后的输出结果是
A) 3
B) 4
C) 5
D) 6
答案
参考答案:B
解析: 本题考查的内容是按位与和按位或运算符的使用,由运算规则可知,d的最终结果为4。
有以下程序
main()
unsigned char a=2,b=4,c=5,d;
d=a|b;d&=c;printf("%d\n",d);
程序运行后的输出结果是
A) 3
B) 4
C) 5
D) 6
参考答案:B
解析: 本题考查的内容是按位与和按位或运算符的使用,由运算规则可知,d的最终结果为4。
根据短文内容,用方框中所给词的适当形式填空。其中有两个是多余的。 | |
has baseballs, tennis rackets, soccer balls and 3 . He 4 sports every 5 .But Lucy doesn't 6 sports. She thinks they are 7 . She likes 8 TV. And she likes English very much. She has many English 9 .They are on the desk. She reads 10 every day. Her English is very good. |