printf("str[]=%s",str); }
A)str[]=abdef
D)str[]=ab
(36)有以下程序
#include <stdio.h>
#include <string.h>
typedef struct{ char name[9]; char sex; float score[2]; }STU;
void f(STU a)
{ STU b={"Zhao",′m′,850,900}; int i;
strcpy(,);
a.sex=b.sex;
for(i=0;i<2;i++) a.score[i]=b.score[i];
}
main()
{ STU c={"Qian",′f′,95.0,92.0};
f(c);
printf("%s,%c,%2.0f,%2.0f\n",,c.sex,c.score[0],c.scor
e[1]);
}
程序的运行结果是
A)Qian,f,95,92 B)Qian,m,85,90
C)Zhao,f,95,92 D)Zhao,m,85,90
(37)有以下程序
#include <stdio.h>
main()
{ FILE *fp; int a[10]={1,2,3},i,n; B)str[]=abcdef C)str[]=a