int x=1,y; y=x>3?++x:x>5?++x:x=x+10; 请问这个计算式中顺序怎么算?
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 22:45:08
intx=1,y;y=x>3?++x:x>5?++x:x=x+10;请问这个计算式中顺序怎么算?intx=1,y;y=x>3?++x:x>5?++x:x=x+10;请问这个计算式中顺序怎么算?intx
int x=1,y; y=x>3?++x:x>5?++x:x=x+10; 请问这个计算式中顺序怎么算?
int x=1,y; y=x>3?++x:x>5?++x:x=x+10; 请问这个计算式中顺序怎么算?
int x=1,y; y=x>3?++x:x>5?++x:x=x+10; 请问这个计算式中顺序怎么算?
int x=1,y;
y=x>3不成立,执行:右边的语句x>5不成立,执行:右边的x=x+10
所以y=11
觉得好请采纳为答案,
void fun(int x,int y) {x=x+y;y=x-y;x=x-y; printf(%d,%d,,x,y); } main() {int x=2,y=3; fun(x,y); privoid fun(int x,int y){x=x+y;y=x-y;x=x-y;printf(%d,%d,,x,y);}main(){int x=2,y=3;fun(x,y);printf(%d,%d
,x,y);}
void fun(int *x,int y){printf(%d%d,*x,*y);*x=3;*y=4;}main(){int x=1,y=2;fun(&y,&x);printf(%d%d,x,y);}
#includemain(){int x=1,y=2,z=3;if(x>y)if(y
int x=1,y=2,z=3if (x>y)if(y
int fun(int x) { int y; if(x>1) y=fun(x-1)+2; else y=2; return y; } main(){ int y; y=fun(3);} y=?
int max(int x,int y) { int z; if(x>y) z=x; else z=y; return(z);
Point(int x=0,int y=0):x(x),y(y){ count++; }我不懂
# include void p(int *x,int y){ ++*x; y=y+2; } void main() { int x=2,y=3; p(&y,y); printf(# includevoid p(int *x,int y){++*x;y=y+2;}void main(){int x=2,y=3;p(&y,y);printf(%d#%d,x,y);}
int x=3,y=4; printf(%d,%d,(x.y),(y,x));
int x=2,y=3;则++x>y--?x:y的值为2,
int x=1,y=-1;if(y
C语言中怎么计算x,y的值?#define int main(void){int x,y;x=y+1;y=3+25;printf( )}
int x=1,y=2,z=3;求z+=x>y?++x:++y
int a=1,x=2,y=3;a?x:y的值是多少
for(int x=0,y=0;!x&&y
int x=78; int y=0; while(x>0){ y++; }else x=x&(x-1); System.out.println(y=Interger.toString()+y)
void Func(int *x,int *y) {*x^=*y; *y^=*x; *x^=*y; } 这个函数的功能是什么?
#includeint a(int x);int b(int y);int main(){int m,n;n=6;m=a(n);printf(%d
,m);return 0;}int a(int x){x=b(x+3);return x;}int b(int y){return y+1;}