卷A:
一,EDABB CABBC ABBBD
二,013 ,1, 6, 取地址,1,成员,21,return, 1, 97
main, 28, 注释, 5, \
三,852, 111, x=9,y= 21,z= 66 , 120, 42
四,1, x%I= =0
2, float s p=1 s+=p
五,1, float area( int a,int b,int c)
{ float s,p;
p=(a+b+c)/;
s=sqrt(p*(p-a)*(p-b)*(p-c));
return(s);
}
2, main()
{ int a=1,b=1,c,j, sum=2;
for(j=3;j<=20;j++) { c=a+b; a=b; b=c; sum+=c; }
printf(“%d”,sum);
}
卷B:
A DCAAA ABCAB
9, 2, 0, 0, , 4, 2, , 3, return
0 , 023, %, 1 , ASCII
三,1, 1
2
3
2, 6
3, 8 1 8
4, 9
5, a=32,b=25
a=25,b=32
四,1, *s1 s1++ ‘\0’
2, y[n][n] printf(‘\n’)
五,1,int max(int a,int b,int c)
{ int z=a;
if(z<b)z=b;
if(z<c)z=c;
return(z);
}
2, main()
{ int n,a,j,t;
float s=0;
scanf(“%d %d”,&a,&n);
for(t=a,j=1;j<=n;j++)
{ s+=t; t=t*10+a; }
printf(“%f”,s);
}
C语言程序设计考试试卷07级答案 来自淘豆网www.taodocs.com转载请标明出处.