#3149. [GESP202412 四级 C++] 第 6 题

[GESP202412 四级 C++] 第 6 题

下面的描述中,( )不能正确定义一个名为 Student 的结构体以及一个包含 20 个元素的结构数组。

A.

struct Student {
    string name;
    int age;
    float score;
};
struct Student students[20];

B.

struct Student {
    string name;
    int age;
    float score;
};
Student students[20];

C.

struct Student {
    string name;
    int age;
    float score;
};
Student* students = new Student[20];

D.

struct Student {
    string name;
    int age;
    float score;
};
Student students = new Student[20];

{{ select(1) }}

  • A
  • B
  • C
  • D