【单选题】【消耗次数:1】
下列条件语句中输出结果与其他语句不同的是。
if(a)printf(“%d\n”,x); else printf(“%d\n”,y);
if(a==0)printf(“%d\n”,y);else printf(“%d\n”,x);
if(a!=0)printf(“%d\n”,x);elseprintf(“%d\n”,y);
if(a==0)printf(“%d\n”,x);else printf(“%d\n”,y);
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 写出下面程序的执行结果。main( ){ int x,y=1; if(y!=0) printf(“%d\t”,x); if(y= =0) else printf(“%d\t\n”,x);
①  1 3
②  1 5
③  5 3
④  5 5
【单选题】 写出下面程序的执行结果。main( ){ int x,y=1; if(y!=0) printf(“%d\t”,x); if(y= =0) else printf(“%d\t\n”,x);}
①  1 3
②  1 5
③  5 3
④  5 5
【单选题】 执行下面程序后,运行结果是 #includevoid main( ) { int x=41,y=1; if (x%3==0 x%7==0) { y+=x;printf(y=%d\n} else {y=x;printf(y=%d} }
①  y=41
②  y=43
③  y=42
④  y=1
【单选题】 以下程序的运行结果是。main( ){int c,x,y; x=1; y=1; c=0; c=x++||y++; printf(“\n%d%d%d\n”,x,y,c);}
①  110
②  011
③  211
④  001
【单选题】 以下程序的运行结果是。main( ){int c,x,y; x=1; y=1; c=0; c=x++||y++; printf(“\n%d%d%d\n”,x,y,c);}
①  110
②  211
③  011
④  001
【简答题】 以下两条if语句可合并成一条if语句为[填空1]。if(a=b) else if(ab) printf(* * * * y=%d\nelse printf(# # # # x=%d\n
【单选题】 下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①  1
②  2
③  3
④  5
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  0
②  1
③  2
④  3
【简答题】 分析下面程序main(){ int x=2,y,z;x*=3+2;printf(%d\nx*=y=z=4;printf(%d\nx=y=1;z=x++-1;printf(%d,%d\n,x,z);z+=-x++ +(++y);printf(%d,%d,x,z); }程序的输出结果是[填空1]。
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  1
②  2
③  3
④  4
【单选题】 以下程序的输出结果是(  )。intx=10,y=10;printf(“%d%d\n”,x--,--y)
①  1010
②  99
③  910
④  109
随机题目
【单选题】 下列时间序列数据的变动为周期性的变动是()
①  长期变动趋势
②  季节性变动
③  循环变动
④  不规则变动
【单选题】 抽样调查的目的在于﹝﹞
①  对调查单位做深入研究
②  用样本指标推断总体指标
③  计算和控制抽样误差
④  了解样本全面情况
【单选题】 决策中通常所说的“最优方案”,除特殊情况外,一般都是指()
①  合理化方案
②  科学化方案
③  满意方案
④  全优化方案
【单选题】 对两年以上五年以下的经济发展前景的预测称为()
①  中期经济预测
②  短期经济预测
③  长期经济预测
④  近期经济预测
【单选题】 指数平滑预测法是对时间序列资料采取的原则是()
①  同等对待
②  区别对待
③  重远轻近
④  以上都不对
【单选题】 在回归模型中,当因变量与自变量的关系呈直线型时,则应采用()
①  多元
②  非线性
③  线性
④  以上都不正确
【判断题】 F检验又称复相关系数检验。()
①  正确
②  错误
【判断题】 概率也是可知的。()
①  正确
②  错误
【单选题】 如果采用分层抽样,从个体数为N的总体中抽取一个容量为n样本,那么每个个体被抽到的可能性为()。
①  N1
②  n1
③  N/n
④  以上都不正确
【单选题】 高三各年级抽取的人数分别为()。
①  15,5,25
②  15,15,15
③  10,5,30
④  15,10,20