下列选项中不能够定义一个结构体类型变量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;
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 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;
- 对结构体类型变量定义不正确的是( )。 A: B: define STUDENT struct studentSTUDENT{char name;int num;}std; C: struct student{char name;int num;}stu; D: E: define struct student{char name;int num;}STD;STD stu; F: struct{char name;int num;}student;struct student stu;
- 若有定义: struct student { int age; int num; }; struct student stu,*p; 则以下正确的赋值语句是()
- 若有定义:struct student{ int age; int num;};struct student stu,*p;则以下正确的赋值语句是()。 A: p=stu; B: *p=*stu; C: *p=&stu; D: p=&stu;
- 以下结构体类型变量的定义中不正确的是( )。 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;