已知学生记录描述为: struct student { int num; char name[20]; struct { int year; int month; int day; }birth; }; struct student s; 下列对 “ 生日”的正确赋值方式是( )
举一反三
- 已知学生记录描述为: struct student{ int no;char name[20];char sex;struct{int year;int month;int day;}birth; };struct student s; 设变量s中的生日应该是“1984年11月11日”,下列对生日的正确赋值是()
- 已知学生记录描述为:struct student{ int num; char name[20]; struct { int year;int month;int day;}birth;};struct student s;下列对“生日”的正确赋值方式是( ) A: year=1980; month=6; day=11; B: birth.year=1980;birth.month=6;birth.day=11; C: s.year=1980; s.month=6; s.day=11; D: s.birth.year=1980; s.birth.month=6; s.birth.day=11;
- 已知学生记录描述为 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;
- 下面定义结构变量的语句中错误的是。 未知类型:{'options': ['struct student{ int num; char name[20]; } s;', 'struct { int num; char name[20]; } s;', 'struct student{ int num; char name[20]; }; struct student s;', 'struct student{ int num; char name[20]; }; student s;'], 'type': 102}
- 若有以下定义,则对变量student1中“生日”的正确赋值方式是( )。 struct student { int num; char name[20], sex; struct { int year, month, day; } birthday; } ; struct student student1;