下面程序的运行的结果是 (希望有详细解释)
#include<stdio.h>main(){intx=1,y=0,a=0,b=0;switch(x){case1:switch(y){case0:a++;break;...
#include <stdio.h>
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("\na=%d,b=%d",a,b);
} 展开
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("\na=%d,b=%d",a,b);
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询