程序运行后的输出结果是()A.3 B3 B3 B.2 C2 C2 C.1 D1 D1 D.0
67)有以下程序:
#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>
void main()void main()void main()void main()void main()void main()void main()void main()void main()void main()void main()
{int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;
if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;
else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)
if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;
else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;
printf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%d\n",y);n",y);n",y);n",y);n",y);n",y);
}
程序运行后的输出结果是()。
A)3 B3 B3 B)2 C2 C2 C)1 D1 D1 D)0