单项选择题

有以下程序 #include"iostream.h" void main() { inti=l,j=1,k=2; if ((j++{}k++)&&i++) cout<< i << " ," << j << "," << k; cout<<endl; 执行后输出结果是

A.1,1,2
B.2,2,1
C.2,2,2
D.2,2,3
<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序: #include iostream.h void main() { int x=1,a=0,b=0; switch(x){ case 0:b++; case 1:a++; case 2:a++;b++; } cout << a= <<a << , << b= << b; } 该程序的输出结果是
A.a=2,b=1
B.a=1,b=1
C.a=1,b=0
D.a=2,b=2
单项选择题
有如下程序 #include<iostream.h> void main() { float X=2.0,y; if(x<0.0)y=0.0; else if(x<10.0)y=1.0 x; else y=1.0; cout<<y; } 该程序的输出结果是
A.0
B.0.25
C.0.5
D.1.0
相关试题
  • 为解决在多重继承环境中因公共基类带来的 ...
  • 我们通常用到的cin>>,是属于 【15】...
  • 如果类中的一个成员函数的定义实现在类内,...
  • operator是运算符重载时必须使用的关键字,...
  • 【12】 是一系列相关函数的模型或样板,...