已有定义和声明: structstudent { intno; charname[20]; struct{intyear,month,day;}birth; } s; 若要求将日期“1989年11月12日”保存到变量s的birth成员中,则能实

admin2019-04-04  22

问题 已有定义和声明:
structstudent
{ intno;
charname[20];
struct{intyear,month,day;}birth;
}       s;
若要求将日期“1989年11月12日”保存到变量s的birth成员中,则能实现这一功能的程序段是________。

选项 A、year=1989;        month=11;        day=12;
B、s.year=1989;        s.month=11;        s.day=12;
C、birth.year=1989;        birth.      month=11;        birth.day=12;
D、s.birth.year=1989;        s.      birth.month=11;        s.birth.day=12;

答案D

解析
转载请注明原文地址:https://kaotiyun.com/show/NIhZ777K
0

最新回复(0)