单项选择题
有以下程序 #include<stdio.h> main() {int y=10; while(y--); printf(”Y=%d\n”,Y); } 程序执行后的输出结果是()
A.y=0 B.y= -1 C.y=1 D.while构成无限循环
A.5,11 B.7,1 C.7,11 D.6,1
A. switch(x%2) {cage 0:a++;break; case 1:b++;break; default:a++;b++; } B. switch((int)x/2.0) {ease 0:a++;break; case 1:b++;break; default:a++;b++; } C. switch((int)x%2) {case 0:a++;break; case 1:b++;break; default:a++;b++; } D. switch((int)(x)%2) {case 0.0:a++;break; case 1.0:b++;break; default:a++;b++; }