单选题

在 C++ 中,(    )正确定义一个名为 student 的结构体,其中包含一个 name 字符数组和一个 age 整数?

A

struct student { char name[20]; int age; };

B

student struct { char name[20]; int age; };

C

student struct { string name; int age; };

D

struct student { char[20] name; int age; };

赣ICP备20007335号-2