#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.000000
B.15.000000
C.25.000000
D.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
[单选题]下列程序的输出结果是( )。 #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 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() { 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
[主观题]以下程序的输出结果是 (7) 。#include "stdio.h"main(){int a=065;printf( "%d\n",--a);}
[单选题]阅读下面程序,则输出结果是#include "stdio.h"void fun(int *a,int *b){int c=20,d=25;*a=c/3;*b=d/5;}main(){ int a=3,b=5;fun(&a,&b);printf("%d,%d\n",a,b);}A.6,5B.5,6C.20,25D.3,5
[单选题]阅读下面程序,则执行后的结果是#include "stdio.h"main(){char str[]="tomeetme",*p;for(p=str;p<str+7;p+=2) putchar(*p);printf("\n");}A.tomeetmeB.tmemC.oeteD.tome
[单选题]阅读下面程序,则执行后的结果是 #include"stdio.h" main() { char str[]="tomeetme",*p; for(p=str;p<str+7;p+=2)putchar(*p); printf("/n");} .A.tomeetmeB.tmemC.oeteD.tome
[单选题]下列程序的运行结果是 #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