A: struct teacher { int num; int age; }teach1;
B: struct { int num; int age; }teach1,teach2;
C: struct { int num; int age; }teacher; struct teacher teach1;
D: struct teacher { int num; int age; }; struct teacher teach1;
举一反三
- 下列对结构类型变量不正确的定义是 A: struct teacher{ int num; int age; }teacher1; B: struct{ int num; int age; }teacher1,teacher2; C: struct{ int num; int age; }teacher D: struct teacher{ int num,age; }a;
- 下列选项中不能够定义一个结构体类型变量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;
- struct teacher { int num; int age; }tea_1; struct teacher *p=tea_1; 下面语句中引用非法的是( )
- 以下对结构体类型变量的定义中不正确的是( )。 A: struct{ int num; float age; }student; struct student std1; B: define STUDENT struct student STUDENT{ int num; float age; }std1; C: int num; float age; }std1; D: struct{ int num; float age; }std1;
- 以下结构体类型变量的定义中不正确的是( )。 A: B: define STUDENT struct student STUDENT{ int num; float age; }std1; C: struct student { int num; float age; } std1; D: struct { int num; float age; }std1; E: struct{ int num; float age; } ; struct student std1;
内容
- 0
以下结构体的定义语句中,正确的是______。? 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;
- 1
以下对结构类型变量的定义中错误的是( ) A: B: define STUDENT struct student STUDENT {int num;float age;} std1; C: struct {int num; float age; } std1; struct student std1; D: struct student {int num; float age; } std1; E: struct {int num; float age; } std1;
- 2
以下对结构体类型变量的定义中不正确的是( )。 A: B: define STUDENTstruct studentSTUDENT {int num; float age;}stdl; C: struct student{ int num; float age; }stdl; D: struct{ int num;float age; }std1; E: struct{ int num;floatage; }student;struct studentstd1;
- 3
若有定义: struct teacher { int num; char sex; int age; }teacher1; 则下列叙述不正确的是
- 4
以下对结构类型变量的定义中不正确的是( ) 未知类型:{'options': ['#define STUDENT struct studentSTUDENT{int num;float age;}std1;', 'struct student{int num;float age;}std1;', 'struct student{int num;float age;float age;}std1;', 'struct student{int num;}student;struct student'], 'type': 102}