已知学生记录描述为:Struct student{ int no;Char name[20],sex; struct { int year,month,day;} birth;};Struct student s;设变量s中的"生日"是"1984年11月12日",对"birth"正确赋值的程序段是( )。
选项:
A: year=1984;month=11;day=12;
B: s.year=1984;s.month=11;s.day=12;
C: birth.year=1984;birth.month=11;birth.day=12;
D: s.birth.year=1984;s.birth.month=11;s.birth.day=12;
发布时间:2024-04-04 13:31:14