以下对结构体类型变量的定义中不正确的是()。
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;
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;
A、struct AA { int m,n; };
B、struct AA { int m,n; }aa;
C、struct { int m,n; };
D、struct { int m,n; }aa;
A、struct student { long no; double score; };
B、struct stud[20] { long no; double score; };
C、struct student { long no; double score; }stud[20];
D、struct { long no; double score; } stud[100];
A、40
B、48
C、32
D、语句错误
B.zhang 是结构体变量名
C.wang 是结构体类型名
D.num, name,score 都是结构体的成员名
A、struct student { char num[5]; int score; }; student stu1,stu2;
B、struct student stu1,stu2; struct student { char num[5]; int score; };
C、struct student { char num[5]; int score=96; }; struct student stu1,stu2;
D、struct student { char num[5]; int score; }; struct student stu1,stu2;
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!