阅读下列程序 则执行结果是 #includestdio.h main() {inta=0 b=0 c=0 i; for(i=0;i&lt

计算机 程序, 已帮助 人

阅读下列程序,则执行结果是

#include "stdio.h"

main()

{int a=0,b=0,c=0,i;

for(i=0;i <4;i++)

switch(i)

{case 0:a=i++;

case 1:b=i++;

case 2:c=i++;

case 3:i++;}

printf("%d,%d,%d,%d\n",a,b,c,i);}

A.0,1,3,4

B.1,2,3,4

C.0,1,2,5

D.0,2,3,4

请帮忙给出正确答案和分析,谢谢!

热搜:hiv抗体筛查结果阳性则可以判定为什么