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