单选题
有以下程序 #include
main() { int a=2,b; b=a<<2;printf("%d\n",b);}
A、
4
B、
6
C、
8
D、
2
【正确答案】
C
【答案解析】
解析:表达式a<<2,把a向左移动2位,相当于扩大4倍。
提交答案
关闭