下列声明结构体变量错误的是( )
A: A.struct student { int no; char name[16]; }st1,st2;
B: B. struct student{ int no;char name[16];};struct student st1,st2;
C: C.struct student { int no; char name[16]; }; struct st1,st2;
D: D.struct student{ int no;char name[16]; };student st1,st2;
A: A.struct student { int no; char name[16]; }st1,st2;
B: B. struct student{ int no;char name[16];};struct student st1,st2;
C: C.struct student { int no; char name[16]; }; struct st1,st2;
D: D.struct student{ int no;char name[16]; };student st1,st2;
举一反三
- 以下关于结构体类型及变量的声明正确的是_____ A: struct student{char name[16];int age}stu1; B: struct student{int age, rank}stu1; C: struct student{char name[16];int age;float score;};student stu1; D: struct student{char name[16];int age, rank;float score;};struct student student;
- struct student { int num; char sex; char name[20]; float score; } st ; 其中num是结构体 ________
- 以下变量定义,错误的是: A: struct student{int num, char name[20];} s; B: struct {int num, char name[20];} s; C: struct student{int num, char name[20];}; struct student s; D: struct student{int num, char name[20];} ; student s
- 对结构体类型变量定义不正确的是( )。 A: B: define STUDENT struct studentSTUDENT{char name;int num;}std; C: struct student{char name;int num;}stu; D: E: define struct student{char name;int num;}STD;STD stu; F: struct{char name;int num;}student;struct student stu;
- struct student{ int num;char sex,name[...st1的num成员赋值为16的语句是 ;