struct teacher { int num; int age; }tea_1; struct teacher *p=tea_1; 下面语句中引用非法的是( )
举一反三
- 下列对结构体类型变量定义不正确的是( ) 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;
- 在如下结构体定义中,不正确的是()。 A: struct teacher{ int no; char name[10]; float salary;}; B: struct tea[20]{ int no; char name[10]; float salary;}; C: struct teacher{ int no; char name[10]; float salary; }tea; D: struct{ int no; char name[10]; float salary; }tea;
- 若有以下说明和定义语句,则下面引用形式中不正确的是 ( )。 struct student { int age; int num; }; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; struct student *p; p=stu;
- 若有定义: struct teacher { int num; char sex; int age; }teacher1; 则下列叙述不正确的是