有以下程序: include struct STU{char name[9];char sex;int score[2];}; void f(struct STU a[

有以下程序: include struct STU{char name[9];char sex;int score[2];}; void f(struct STU a[]) { struct STU b={"Zhao",m,85,90); a[1]=b; } main() { struct STU c[2]={{"Qian",f,95,92},{"Sun",m 98,99}}; f(c); printf(”%s,%c,%d,%d,¨,c[o].name,c[o].sex,c[o].score[o],c[o].score[1]); printf("%s,%c,%d,%d\n",c[1].name,c[1].sex,c[1].score[o],c[1].score [1]); } 程序运行后的输出结果是()。 A.Zhao,m,85,90,Sun,m,98,99 B.Zhao,m,85,90,Qian,f,95,92 C.Qian,f,95,92,Sun,m,98,99 D.Qian,f,95,92,Zhao,m,85,90

时间:2024-04-12 16:24:07

相似题目