填空题
有以下程序:
#include<stdio.h>
main()
int a=1,b=2,c=3,d=0;
if(a==1)
if(b1=2)
if(c==3) d=1;
else d=2;
else if(c!=3) d=3;
else d=4;
else d=5;
printf("%d\n",d);
程序运行后的输出结果是______。
【参考答案】
D
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
下列程序的运行结果是______。#include<stdio.h>main() int a, b,c,n; a=2;b=0;c=1;n=1; while(n<=3) c=c*a;b=b+ c;++n; printf( b=%d , B) ;
点击查看答案&解析
填空题
用以下语句调用库函数malloc,使字符指针st指向具有11字节的动态存储空间,请填空。 st=(char*)______。
点击查看答案&解析
相关试题
若给fun函数的形参s传送字符串“∪∪635...
下列程序的输出结果是______。 #in...
设有定义: struct person int ID;cha...
下列程序的输出结果是 int t(intx,inty...
有以下程序: #include<stdio.h> mai...