[单选题]

有以下程序:
#include <stdio.h>
#include <string.h>
typedef struct {char name[9];char sex; float score[2];} STU;
void f(STU *A)
{ strcpy(a->name,"Zhao");
 a->sex='m';a->score[1]=90.0;
}
main()
{ STU c={"Qian",'f',95.0,92.0},*d=&c;
 f(D);printf("%s,%c,%2.0f,%2.0f ",d->name,c.sex,c.score[0],c.score[1]);
}
程序的运行结果是(  )。

A.Qian,f,95,92

B.Zhao,f,95,90

C.Zhao,m,95,90

D.Zhao,f,95,92

参考答案与解析:

相关试题

有以下程序:<br />#include <stdio.h><br />#include <string.h><br />typedef s