{int x=1,a=0,b=0;switch(x){ case 0:b++; case 1:a++; case 2:a++;b++;} printf("a=%db=%d\n",a,b);

问题描述:

{int x=1,a=0,b=0;switch(x){ case 0:b++; case 1:a++; case 2:a++;b++;} printf("a=%db=%d\n",a,b);
a=?b=?

a=2 b=1