下面程序的输出结果是()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;}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/09/06 05:41:51
![下面程序的输出结果是()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;}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](/uploads/image/z/14452520-32-0.jpg?t=%E4%B8%8B%E9%9D%A2%E7%A8%8B%E5%BA%8F%E7%9A%84%E8%BE%93%E5%87%BA%E7%BB%93%E6%9E%9C%E6%98%AF%EF%BC%88%EF%BC%89main%28+%29%7B+int+x%3D1%2Cy%3D0%2Ca%3D0%2Cb%3D0+%3Bswitch+%28x+%29%7Bcase+1%3Aswitch+%28y+%29%7Bcase+0%3Aa%2B%2B%3B+break%3Bcase+1%3Ab%2B%2B%3B+break%3B%7Dcase+2%3Aa%2B%2B%3B+b%2B%2B%3B+break%3B%7Dprintf+%28%E2%80%9Ca%3D%25d%2Cb%3D%25d%5Cn%E2%80%9D%2Ca%2Cb%29%3B%7DA%EF%BC%89a%3D2%2Cb%3D1+B%EF%BC%89a%3D1%2Cb%3D1+C%EF%BC%89a%3D1%2Cb%3D0+D%EF%BC%89a%3D2%2Cb%3D2)
xR[KA+%0Zc
]~F/Z$)!]_RW)S
2ɿ8^g9s|{+n8M;-ʒIڏcf_Px,$4I@ljl5XO1(6dJ!iMLGђ#HCJ#Qr< k8E bCpy,xfK0;(>=*hbNK.wXI
GrX\ߪ%F?\