下列对结构体类型变量定义不正确的是( )
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; }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;