下列对结构类型变量不正确的定义是
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;
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;
举一反三
- 下列对结构体类型变量定义不正确的是( ) 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;
- 若有定义: struct teacher { int num; char sex; int age; }teacher1; 则下列叙述不正确的是
- 若有定义:struct teacher{int num;char sex;int age;}teacher1;则下列叙述不正确的是( ) A: struct是结构类型的关键字 B: struct teacher是用户定义的结构类型 C: num,sex,age都是结构变量teacher1的成员 D: teacher1是结构类型名
- 若有定义:struct teacher{ int num; char sex; int age;}teacher1;则下列叙述不正确的是( )。 A: teacher1是结构体类型名 B: num,sex,age都是结构体变量teacher1的成员 C: struct teacher是用户定义的结构体类型 D: struct是结构体类型的关键字
- struct teacher { int num; int age; }tea_1; struct teacher *p=tea_1; 下面语句中引用非法的是( )