单选题已知:int x= 1,y = 2,z =0,则执行z=xy?(10+x,10-x):(20+y,20-y)后,z的值为()A11B9C18D22
单选题
已知:int x= 1,y = 2,z =0,则执行z=x>y?(10+x,10-x):(20+y,20-y)后,z的值为()
A
11
B
9
C
18
D
22
参考解析
解析:
暂无解析
相关考题:
以下选项错误的是A.main(){ int x,y,z;x=0;y=x-1;z=x+y;}B.main(){ int x,y,z;x=0,y=x+1;z=x+y;}C.main(){ int x;intint y;x=0,y=x+1;z=x+y;}D.main(){ int x,y,z;x=0;y=x+1;z=x+y,}
已知x=5,y=2,z=6。表达式x>y And z>x Or xy的值是()。A.FalseB.TrueC.1D.0 已知x=5,y=2,z=6。表达式x>y And z>x Or x<y And Not z>y的值是( )。A.FalseB.TrueC.1D.0
以下程序执行后的输出结果是( )。include usingnamespacestd;void try(int,int,int,in 以下程序执行后的输出结果是( )。 #include <iostream> using namespace std; void try(int,int,int,int); int main ( ) { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = X*X; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定
以下程序执行后x的值是()。includemain(){int x,y=252,i=386,*m=y,*z=i;x=(z 以下程序执行后x的值是( )。 #include <stdio.h> main() { int x,y=252,i=386,*m=y,*z=i; x=(z= =m); printf("%d",x); }A.252B.1C.0D.运行时出错,x无定值
以下程序执行后的输出结果是include using namespace std;void try(int,int,int,int) 以下程序执行后的输出结果是 #include <iostream> using namespace std; void try(int,int,int,int); int main () { int x,y,z,r; x =1 ; y = 2; try(x,y,z,r); cout<<r<<endl; return 0; } void try(int x,int y,int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定
若m,y,z均为int型变量,则执行下面语句后m值是______。 m=1;x=2;y=3;z=4; m=(m<x)?m:x; m=(n<y)?m:y; m=(m<z)?m;z;A.1B.2C.3D.4
以下程序执行后的输出结果是includeusing namcspace std;void try(int,int,int,int); 以下程序执行后的输出结果是 #include<iostream> using namcspace std; void try(int,int,int,int); int main() { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定
有以下程序:includemain(){int x=0,y=5,z=3; while(z-->0 ++x 有以下程序: #include <sldio.h> main() { int x=0,y=5,z=3; while(z-->0 ++x<5) y=y-1; printf("%d,%d,%d\n",x,y,z); } 程序执行后的输出结果是( )。A.3,2,0B.3,2,-1C.4,3,-1D.5,-2,-5
以下程序执行后的输出结果是()。includeusing namespace std;void try(int,int,int,in 以下程序执行后的输出结果是( )。 #include<iostream> using namespace std; void try(int,int,int,int); int main() { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<endl; return 0; } void try(int x,int y, int z,int r) { z = x+y; X = x*x; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定
以下程序执行后的输出结果是include.using namespace std;void try(int,int,int,int) 以下程序执行后的输出结果是 #include<iostream>. using namespace std; void try(int,int,int,int); int main() { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定
x=1,y=1,z=1,执行表达式w=++x||++y++z后,x、y、z的值分别为()。A、x=2,y=1,z=1B、x=2,y=2,z=2C、x=1,y=1,z=1D、x=2,y=2,z=1
单选题设X、Y、Z都是int整型变量,且x=2,y=3,z=4,则下面的表达式中,值为0的表达式是()。A’x’’z’B(!y==1)(!z==0)C(xD1 br=""x