以下语句中,结构体类型为( )struct student{int a; float x;}stu2
A: student
B: stu2
C: a
D: x
A: student
B: stu2
C: a
D: x
举一反三
- 以下语句中,结构体类型为( )struct student{int a; float x;}stu2 A: student B: stu2 C: a D: x
- 以下各项用于定义结构体类型,并定义结构体变量,其中正确的是________。 A: struct student { char num[5]; int score; }; student stu1,stu2; B: struct student{ char num[5]; int score;};struct student stu1 stu2; 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;
- 下列选项中不能够定义一个结构体类型变量stu的是 。 A: struct student { int num; int age; } stu; B: struct student { int num; int age; }; student stu; C: struct {int num; int age; } stu; D: struct student {int num; int age; }; struct student stu;
- 22. 以下对结构体类型变量的定义错误的是( )。 A: B: define STU struct student STU {float height; int age; }std1; C: struct student {float height; int age; }std1; D: struct {float height; int age; }std1; E: struct {float height; int age; }student; struct student std1;
- 以下结构体的定义语句中,正确的是______。? 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;