单选题 有以下程序:
# include <stdio.h>
main()
{ int a=2,b;
b=a<<2; printf("%d/n",b);
}
程序运行后的输出结果是______。
【正确答案】 D
【答案解析】[解析] 本题考查运算符“<<”,b=a<<2,是左移2位,a=2,即b=2*2*2=8。