网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下程序的输出结果是
#include
void main()
{ int x=1,y=3;
cout <<
{int x=0;x+=y*2;
cout <<<<
}
cout <<<
}
A. 1,6,3,1,3
B.1,6,3,6,3
C.1,6,3,2,3
D.1,7,3,2,3
参考答案
更多 “ 以下程序的输出结果是#includevoid main(){ int x=1,y=3;cout {int x=0;x+=y*2;cout }cout }A. 1,6,3,1,3B.1,6,3,6,3C.1,6,3,2,3D.1,7,3,2,3 ” 相关考题
考题
以下程序运行后的输出结果是【】。 include void fun(int x,int y) {x=x+y;y=x-y
以下程序运行后的输出结果是【 】。include<iostream.h>void fun(int x,int y){ x=x+y;y=x-y;x=x-y;cout<< x << "," <<y << " ,";}void main( ){ int x=2,y=3;fun(x,y);cout<< x << "," << y << endl;}
考题
以下程序的执行结果是【】。includeincludeclass Sample{ public: int x,y;
以下程序的执行结果是【 】。include<iostream.h>include<stdlib.h>class Sample{public:int x,y;Sample(){x=y=0;}Sample(int a,int b) {x=a;y=b; }void disp(){cout<<"x="<<x<<",y="<<y<<end1;}};void main() {Sample s1(2,3);s1.disp();}
考题
以下程序的执行结果是______。 include void main() { int x=5 y=2; cout
以下程序的执行结果是______。include<iostream.h>void main(){int x=5 y=2;cout<<! (y==x/2)<<",";cout<<(y!=x%3)<<",";cout<<(x>0 y<0=<<",";cout<<(x!=y||x>=y)<<endl;}
考题
以下程序的输出结果是 include void main( ) {int x=1,y=3; cout
以下程序的输出结果是#include<iostream.h>void main( ){int x=1,y=3;cout < < x++ < < ",";{int x=0;x+=y * 2;cout < < x < <"," < < y < <",";}cout < < x < < "," < < y;}A.1,6,3,1,3B.1,6,3,6,3C.1,6,3,2,3D.1,7,3,2,3
考题
有以下程序:includevoid main(){ int x=5,y=2; cout
有以下程序: #include<iostream.h> void main() { int x=5,y=2; cout<<!(y==x/2)<<","; cout<<y!=x%3)<<","; cout<<(x>0y<0)<<","; cout<<(x!=y‖x>=y)<<endl: } 程序执行后的输出结果是( )A.0,0,0,1B.1,1,1 1C.0,0, 1,1D.1,1,0,0
考题
以下程序的输出结果是includevoid main( ){int x=1,y=3;cout
以下程序的输出结果是 #include<iostream.h> void main( ) {int x=1,y=3; cout << x++ << ","; {int x=0;x+=y*2; cout <<X <<"," <<y << ","; } cout << x <<","<< y; }A.1,6,3,1,3B.1,6,3,6,3C.1,6,3,2,3D.1,7,3,2,3
考题
以下程序输出结果是 ______。includevoid fun(int x,int y,int z){z=x+y;}void main
以下程序输出结果是 ______。 #include<iostream.h> void fun(int x,int y,int z){z=x+y;} void main() { int a=10; fun (2,2,a); cout<<a; }A.0B.4C.10D.无定值
考题
以下程序段的输出结果是 ______。includevoidmain() { int x[]二{9,7,5,3,1),y=0,j,
以下程序段的输出结果是 ______。 #include<iostream.h> void main() { int x[]二{9,7,5,3,1),y=0,j,*p=x[2]; for(j=0;i<3;j++) y+=*(p+j); cout<<y; }A.7B.8C.9D.10
考题
以下程序的输出结果是includevoid main(){int x=1,y=3; cout
以下程序的输出结果是 #include<iostream.h> void main() { int x=1,y=3; cout << x++ << " , "; { int x=0;X+=y*2; cout<<x<<" ,"<<y<<" ;"; } cout<<x<<" ,"<<y; }A.1,6,3,1,3B.1,6,3,6,3C.1,6,3,2,3D.1,7,3,2,3
考题
【填空题】以下程序的输出结果是_____________ #include <stdio.h> int f(int x) { static y=1; y++; x+=y; return x; } void main() { int k; k=f(3); printf(“%d,%dn”,k,f(k)); }
热门标签
最新试卷