• 2022-05-26
    已知学生记录描述为:struct student{int no ;char name[20];char sex;struct{int year;int month;int day ;} birth ;}s ;设结构变量s中的birth值为1985年10月1日,则下面正确的赋值方式是_______。
    A: year=1985month=10day=1
    B: birth.year=1985birth.month=10birth.day=1
    C: s.year=1985s.month=10s.day=1
    D: s.birth.year=1985s.birth.month=10s.birth.day=1
  • 举一反三