• 2022-06-17
    若有以下定义,则对变量student1中“生日”的正确赋值方式是( )。struct student{ int num; char name[20], sex; struct { int year, month, day; } birthday;} ; struct student student1;
    A: student1.birthday.year = 2003;student1.birthday.month = 5;student1.birthday.day = 1;
    B: year = 2003;month = 5;day = 1;
    C: birthday.year = 2003;birthday.month = 5;birthday.day = 1;
    D: student1.year = 2003;student1.month = 5;student1.day = 1;
  • 举一反三