单选题:有以下程序main(){int a=0,b=0,c=0,d=0;if(a=1) b=1;c=2;else d=3;pri

  • 题目分类:C语言
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
有以下程序
main()
{int a=0,b=0,c=0,d=0;
if(a=1) b=1;c=2;
else d=3;
printf("%d,%d,%d,%d\n",a,b,c,d);
}
程序输出( )。 A.0,1,2,0
B.0,0,0,3
C.1,1,2,0
D.编译有错
参考答案:
答案解析:

有以下程序main() {int y=10;while(y--);printf("y=%d\n",y);}程序执行后的输

有以下程序main() {int y=10;while(y--);printf("y=%d\n",y);}程序执行后的输出结果是( )。A.y=0 B.y=-1

查看答案

The steadily rising cost of labor on the waterfront has grea

The steadily rising cost of labor on the waterfront has greatly increased the co

查看答案

下列对于线性链表的描述中正确的是( )

下列对于线性链表的描述中正确的是( )A.存储空间不一定是连续,且各元素的存储顺序是任意的 B.存储空间不一定是连续,且前件元素一定存储在后件元素的前面 C.存

查看答案

The fuel tanks had a capacity of 140 liters.

The fuel tanks had a capacity of 140 liters.A.function B.ability C.power D.volum

查看答案

1/2,1,2,12,360,( )

1/2,1,2,12,360,( )A.75600 B.7560 C.756 D.756000

查看答案