有以下程序
#include
typedef struct stu {
char name[10];
char gender;
int score;
} STU;
void f(STU *a, STU *b)
{ b = a;
printf("%s,%c,%d,", b->name, b->gender, b->score);
}
main()
{ STU a={"Zhao", 'm', 290}, b={"Qian", 'f', 350};
f(&a,&b);
printf("%s,%c,%d\n", b.name, b.gender, b.score);
}
程序的运行结果是
- A.Zhao,m,290,Qian,f,350
- B.Qian,f,350,Zhao,m,290
- C.Qian,f,350,Qian,f,350
- D.Zhao,m,290,Zhao,m,290
热度🔥385
解析:打开微信小程序查看本题解析