单选题
已有定义和声明: struct student {int no; char name[20]; struct{int year,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
【答案解析】
提交答案
关闭