中国大学MOOC: 对于如下结构体定义struct student{ int id; char name[32];}s1;如下说法正确的是
举一反三
- 中国大学MOOC: 下面结构体的定义如下:struct student{ char name[32]; struct date{ int day; int month; int year; }birthday;};错误的初始化语句是:
- 下面结构体的定义如下:struct student{ char name[32]; struct date{ int day; int month; int year; }birthday;};错误的初始化语句是: A: struct student s1={'Li',1,1,2000}; B: struct student s1={"Li",{1,1,2000}}; C: struct student s1={"Li",1,1,2000}; D: struct student s1={"Li",1,1};
- 下面结构体的定义如下:struct student{ char name[32]; struct date{ int day; int month; int year; }birthday;};错误的初始化语句是: A: struct student s1={'Li',1,1,2000}; B: struct student s1={"Li",{1,1,2000}}; C: struct student s1={"Li",1,1,2000}; D: struct student s1={"Li",1,1};
- 下面结构体的定义如下:struct student{ char name[32]; struct date{ int day; int month; int year; }birthday;};错误的初始化语句是: A: struct student s1={"Li",{1,1,2000}}; B: struct student s1={'Li',1,1,2000}; C: struct student s1={"Li",1,1,2000}; D: struct student s1={"Li",1,1};
- 下面定义结构变量的语句中错误的是。 未知类型:{'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}