职教组卷基于海量职教高考试题库建立的在线组卷及学习系统
职教组卷
  • 题型:选择题 题类:单元测试 难易度:易

    已知学生记录描述为:
    struct student
    {char no[8],name[10],sex[3];
    struct
    {int day,month,year;}birth;
    };
    struct student s;
    设变量s中的"生日"应是2005年8月18日,下列对"生日的赋值方式中正确的是(  )
    A. day =18;
    month=8;
    year=2005;
    B. s.day =18;
    s.month =8;
    s.year =2005;
    C. s.birth.day =18.
    s.birth.month=8;
    s.birth.year=2005;
    D. birth.day =18;
  • 相关试卷