A.6
B.7
C.8
D.9
[单选题]下面程序的运行结果是( )。 #include"stdio.h" main() {int i; for(i=1;i<=5;i++) { if(i%2) printf("*"); else printf("#"); } }A.*#*#*B.#*#*#*C.*#*#D.#*#*
[单选题]以下程序的运行结果是 #include"stdio.h" main() { struct date { int year,month,day;}today; printf("%d/n",sizeof(struct date));}A.6B.8C.10D.12
[单选题]以下程序的运行结果是#include "stdio.h"main(){struct date{int year,month,day;}today;printf("%d\n",sizeof(struct date));}A.6B.8C.10D.12
[单选题]阅读如下程序段#include "stdio.h"main(){ int x,a,b;scanf("%d",&x);a=b=x;for(;x!=0;){ if(x输入后输出结果是A.a=7569,b=789B.a=5,b=365C.a=7,b=789D.a=7569,b=5
[单选题]下列程序的输出结果是#include "stdio.h"main(){int i,a=0,b=0;for(i=1;i<10;i++){if(i%2==0){a++;continue;}b++;}printf("a=%d,b=%d",a,b);}A.a=4,b=4B.a=4,b=5C.a=5,b=4D.a=5,b=5
[单选题]下列程序的输出结果是( )。 #include "stdio.h" main() { struct st { int y,x,z;}; union {long i;int j; char k;} un; printf("%d,%d/n",sizeo(struct st),sizeof(un)); }A.6,2B.6,4C.8,4D.8,6
[单选题]阅读下列程序,程序的输出结果是#include "stdio.h"main(){int m,n;float k;for(m=6;m>2;m--){ k=0;for(n=m;n>1;n--)k=k+m*n;}printf("%f\n",k);}A.5.000000B.15.000000C.25.000000D.35.000000
[单选题]阅读下列程序,则执行结果是#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,4B.1,2,3,4C.0,1,2,5D.0,2,3,4
[单选题]下面程序的输出结果是( ) #include"stdio.h" fun(x) int x; { int y=0; static int z=5; z=x++,y++; return(z); } main() int a=4,i,j; for (i=0;i<2;i++) j=fun(a++); printf("%d",j); }A.0B.3C.4D.5
[单选题]下列程序的输出结果是 #include"stdio.h" main() { int i,a=0,b=0; for(i=1;i<10;i++) { if(i%2==0) {a++; continue;} b++;} printf("a=%d,b=%d",a,b);}A.a=4,b=4B.a=4,b=5C.a=5,b=4D.a=5,b=5