题目内容
(请给出正确答案)
[主观题]
已知学生记录描述为 struct student { int no; char name[20]; char sex; struct { int year; in
t month; int day; } birth; }; struct student s;变量s中的“生日”应是“1985年4月4日”,下列对“生日”的正确赋值方式是______。
A.year=1985;month=4;day=4;
B.birth.year=1985;birth.month=4;birth.day=4;
C.s.year=1985;s.month=4;s.day=4;
D.s.birth.year=1985;s.birth.month=4;s.birth,day=4;
如搜索结果不匹配,请 联系老师 获取答案