![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
可以对结构体数组的各个元素单独赋值
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)
第2题
A、结构体数组的数组元素是结构体类型
B、struct student information[100]; 该语句定义了information结构体数组,它的数据类型是student
C、在进行以下定义时,struct student 必须是已经定义的结构体数据类型 struct student information[100];
D、以下语句定义结构体数组,数组完整名称为struct student information。 struct student information[100];
第9题
struct STD
{ char name[10];
int age;
char sex;
} s[5],*ps;
ps=&s[0];
则以下 scanf 函数调用语句中错误引用结构体变量成员的是
A)scanf("%s",s[0].name);
B)scanf("%d",&s[0].age);
C)scanf("%c",&(ps->sex));
D)scanf("%d",ps->age);
第10题
A、struct POINT{ public double x;//横坐标 public double y;//纵坐标 } POINT[] p; p=new POINT[100];
B、struct POINT{ public double x;//横坐标 public double y;//纵坐标 } POINT p[100];
C、struct POINT{ public double x;//横坐标 public double y;//纵坐标 } POINT p[]=new POINT[100];
D、struct POINT{ public double x;//横坐标 public double y;//纵坐标 } POINT p=new POINT[100];
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!