执行下面程序段后,输出结果是_____。int x,y;for(x=1,y=10;x
A. 5
B. 6
C. 4
D. 10
以下程序的运行结果为_____。#include”stdio.h”void main(){int i,a=0,b=0,c=0;for(i=11;i<15;i++)switch(i%5){case 1:a++;case 2:b++;case 3:a++;b++;break;default:c++;}printf(“a=%d,b=%d,c=%d\n”,a,b,c);}
以下程序的运行结果是____。#includevoid main(){int a[]={1,1,0,1},b[]={1,0,0,1};int i;for(i=0;i<4;i++)a[i]=a[i]+b[i];for(i=3;i>0;i--){a[i-1]=a[i-1]+a[i]/2;a[i]=a[i]%2;}a[0]=a[0]%2;for(i=0;i<4;i++)printf("%d",a[i]);printf("\n");}
伦勃朗《夜巡》中要画多少个保安射手?
A. 15
B. 16
C. 17
D. 18