• 2022-06-08
    以下对结构体类型变量的定义中不正确的是( )。
    A:
    B: define STUDENTstruct studentSTUDENT {int num; float age;}stdl;
    C: struct student{ int num; float age; }stdl;
    D: struct{ int num;float age; }std1;
    E: struct{ int num;floatage; }student;struct studentstd1;
  • D

    内容

    • 0

      22. 以下对结构体类型变量的定义错误的是( )。 A: B: define STU struct student STU {float height; int age; }std1; C: struct student {float height; int age; }std1; D: struct {float height; int age; }std1; E: struct {float height; int age; }student; struct student std1;

    • 1

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

    • 2

      以下结构体的定义语句中,正确的是______。? 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;

    • 3

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

    • 4

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