A.struct不可以实现interface
B.struct可以包括无参数的默认构造函数
C.struct可以继承class
D.struct可以包括静态构造函数
第1题
A.year=1995;month=11;day=12;
B.stu.year=1995;stu.month=11;stu.day=12;
C.birthday.year=1995;birthday.month=11;birthday.day=12;
D.stu.birthday.year=1995;stu.birthday.month=11;stu.birthday.day=12;
第2题
A.year=1984;month=11;day=11;
B.birth.year=1984; birth.month=11; birth.day=11
C.s.year=1984;s.month=11;s.day=11
D.s.birth.year=1984;s.birth.month=11; s.birth.day=11;
第3题
A.struct student {int num; char name[10];int age;};stu;
B.struct {int num; char name[10];int age;}student; struct student stu;
C.struct student {int num; char name[10];int age;}stu;
D.struct student {int num; char name[10]; int age;}; student stu;
第4题
A.struct abc { double a; char b[10]; } s;
B.struct { double a; char b[10]; } s;
C.struct ABC { double a; char b[10]; }; struct ABC s;
D.struct s { double a; char b[10]; };
第5题
A.#define STUDENT struct student STUDENT {int num; float age; }std1;
B.struct student {int num; float age; }std1;
C.struct {int num; float age; }std1;
D.struct int num; float age; }student; struct student std1;
第6题
A.struct aa{int a; int *b;};
B.struct bb{int a; bb *b;};
C.struct cc{int *a; cc b;} ;
D.struct dd{int *a; aa b;};
第7题
A.struct color cl { int red; int green; int blue; }
B.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
C.struct color { int red; int green; int blue; } cl;
D.struct { int red; int green; int blue; } cl;
第8题
A.typedef struct aa { int n; float m; }AA; AA tdl;
B.#define AA struct aa AA { int n; float m; } tdl;
C.struct aa { int n; float m; }; struct aa tdl;
D.struct { int n; float m; }tdl;
第9题
A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
B.struct color cl { int red; int green; int blue; };
C.struct color { int red; int green; int blue; }cl;
D.struct { int red; int green; int blue; } cl;
第10题
A.struct{ int num; float age; }student; struct student std1;
B.#define STUDENT struct student STUDENT{ int num; float age; }std1;
C.int num; float age; }std1;
D.struct{ int num; float age; }std1;
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!