在下列结构类型和变量定义中,______选项是正确的。
A: struct student{int number, chur name[20],)s;
B: struct {int number, chur name[20],};s;
C: struct student{int number, chur name[20];};s;
D: struct student{int number, chur name[20];)s;
A: struct student{int number, chur name[20],)s;
B: struct {int number, chur name[20],};s;
C: struct student{int number, chur name[20];};s;
D: struct student{int number, chur name[20];)s;
举一反三
- 以下变量定义,错误的是: 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: struct student { int no; char name[10]; float score; } B: struct stud[20] { int no; char name[10]; float score; } C: struct student { int no; char name[10]; float score; }stud[20]; D: struct{int no;char name[10];float score;}stud[100];
- 对结构体类型变量定义不正确的是( )。 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 name[10];int age;}stu;|struct {int num; char name[10];int age;}student; struct student stu;|struct student {int num; char name[10]; int age;}; student stu;|struct student {int num; char name[10];int age;};stu;
- 一下选项中,定义结构体变量错误的是( ) A: struct student {int num; char name[30];<br> }wangming; B: struct {int num; char name[30];<br> }wangming; C: struct student {int num; char name[30];<br> }; struct student wangming; D: struct student {int num; char name[30];<br> }; student wangming;