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;
第1题
A.typedef struct aa
{ int n;
float m;
}AA;
AA tdl;
B.#define AA struct aa
AA{ int n;
float m;
} tdl;
C.struct
{ int n;
float m;
} aa;
struct aa tdl;
D.struct
{ int n;
float m;
} tdl;
第2题
A.typedef struet aa { int n; float m; }AA; AA tdl;
B.#define AA struct aa AA{ int n; float m; }tdl;
C.struct { int n; float m; } aa; struct aa tdl;
D.struct { int n; float m; }tdl;
第3题
A.typedef struct aa { int n; float m; }AA; AA tdl;
B.#define AA struct aa AA{ int n; float m; }tdl;
C.struct { int n; float m; }aa; struct aa tdl;
D.struct { int n; float m, }tdl;
第4题
A.typedef struct aa { int n; float m; }AA; AA tdl;
B.#define AA struct aa AA{ int n; float m; }tdl;
C.struct { int n; float m; }aa; struct aa tdl;
D.struct { int n; float m; }tdl;
第5题
A.typedef struct aa { int n; float m; }AA; AA td1;
B.#define AA struct aa AA {int n; float m; }td1;
C.struct {int n; float m; }aa; srtuct aa td1:
D.struct {int n; float m; }tdl;
第6题
A.typedef struct aa { int n; float m; }aa; aa td1;
B.#define aa struct aa aa{ int n; float m; }td1;
C.struct { int n; float m; }aa; struct aa td1;
D.struct { int n; float m; }td1;
第8题
A、struct teacher {int num; int age; }; struct teacher teach1;
B、struct teacher {int num; int age; }teach1;
C、struct {int num; int age; }teach1;
D、struct {int num; int age; }teacher; struct teacher teach1;
第9题
A.共用体变量占的内存大小等于所需内存最大的成员所占的内存
B.共用体类型可以出现在结构体类型定义中
C.在定义共用体变量的同时允许对第一个成员的值进行初始化
D.同一共用体各成员的首地址不相同
第10题
structstu
{inta;
floatb;}stutype;
A.struct是结构体类型的关键字
B.structstu是用户定义结构体类型
C.stutype是用户定义的结构体类型名(变量名)
D.a和b都是结构体成员名
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!