首页 > 其它 > 题目详情
#include main() { int x=1,y=0,a=0,b=0; switch(x) { case 1:sw
题目内容:
#include main() { int x=1,y=0,a=0,b=0; switch(x) { case 1:switch(y
#include
main()
{ int x=1,y=0,a=0,b=0;
switch(x)
{ case 1:
switch(y)
{ case 0:a++; break;
case 1:b++; break;
}
case 2:a++; b++; break;
case 3:a++; b++;
}
printf(“a=%d,b=%d\n”,a,b);优质解答
int x=1,y=0,a=0,b=0; switch(x) { case 1: //此时X=1,进入case1; switch(y) { case 0: a++; break; //此时y=0,进入case0;,a++后break跳出switch(y) case 1: ...
#include
main()
{ int x=1,y=0,a=0,b=0;
switch(x)
{ case 1:
switch(y)
{ case 0:a++; break;
case 1:b++; break;
}
case 2:a++; b++; break;
case 3:a++; b++;
}
printf(“a=%d,b=%d\n”,a,b);
优质解答
本题链接: