下面程序的输出结果是()#include void main( ){ int x=1,a=0,b=0;switch(x){case 0: b++;case 1: a++;case 2: a++;b++;}printf("a=%d,b=%d\n",a,b);}
选项:
A:a=2,b=1
B:a=1,b=1
C:a=1,b=0
D:a=2,b=2
发布时间:2024-06-08 21:55:42