单选题:输出程序执行结果
#include <stdio.h>
typedef struct
{
char name[10];
int no;
float score;
}INFO;
void swap(INFO a,INFO b)
{
float t;
t=a.score;
a.score=b.score;
b.score=t;
}
int main()
{
INFO x={"one",1001,89}, y={"two",1002,75};
swap(x,y);
printf("%s,%d,%.2f\n", y.name, y.no, y.score);
return 0;
}
A.one,1001,89.00
B.two,1002,75.00
C.one,1001,75.00
D.two,1002,89.00
答案:B