#include "stdio.h"
main()
{struct date
{int year,month,day;}today;
printf("%d\n",sizeof(struct date));
}
A.6
B.8
C.10
D.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() { intx=-9,y=5,z=8; if(x<y) if(y<0)z=0; else z+=1; printf("%d/n",z);}A.6B.7C.8D.9
[单选题]下面程序的运行结果是( )。 #include"stdio.h" main() {int i; for(i=1;i<=5;i++) { if(i%2) printf("*"); else printf("#"); } }A.*#*#*B.#*#*#*C.*#*#D.#*#*
[主观题]以下程序的输出结果是 (7) 。#include "stdio.h"main(){int a=065;printf( "%d\n",--a);}
[单选题]以下程序的运行结果为 #include"stdio.h" main() { int m,n; for(m=0,n=10;m<n;m+=3,n--); printf("%d,%d/n",m,n);}A.6,7B.7,6C.9,7D.7,9
[单选题]下列程序的输出结果是#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" 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