在 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; };
正确答案:A