问题 单项选择题

已知学生记录描述为 struct student { int no;char name[20];char sex;struct{ int year; int month; int day;} birth; }; struct student s;变量s中的“生日”应是“1985年4月4日”,下列对“生日”的正确赋值方式是______。

A.year=1985;month=4;day=4;

B.birtyear=1985;birtmonth=4;birtday=4;

C.year=1985;month=4;day=4;

D.birtyear=1985;birtmonth=4;birth,day=4;

答案

参考答案:D

单项选择题
多项选择题 案例分析题