AI题库 · GESP-C++四级题库
题目分享 #20922
在 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; };
AI题库 · 编程考级与信奥赛真题库
查看答案 →
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。