• 2021-04-14
    以下对结构体变量stul中成员age的非法引用是()。struct student{int age;int num;}stul,*p;p=&stul;
  • age

    内容

    • 0

      以下对结构体变量s 中成员age的合法法引用是(00a0 )。 #include struct student {int age; int num; } s,*p; p=&s;

    • 1

      若有以下语句: struct student { int age; int num; } std,*p; p=&std; 则对结构体变量std中成员age的引用方式不正确的是()。

    • 2

      以下对结构体变量stu1中成员age的正确引用是()。 struct student { char name[10]; int age ; } stu1 ,*p; p=&stu1;

    • 3

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

    • 4

      下列选项中不能够定义一个结构体类型变量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;