多項選擇題

數(shù)據(jù)結(jié)構(gòu)里,struct student
{
char name[20];
char sex[10];
int age;
int score;
};
定義結(jié)構(gòu)體后,定義變量、數(shù)組賦值正確的是()。

A.struct student s={"張三","男",18,100};
B.struct student stu[3]={{"張三","男",18,100},{"李四","男",19,90},{"王五","男",23,97}};
C.struct student s={"李四";"女";18;100};
D.struct student stu[3]={{"張三",18,"男",100},{"李四",19,"男",90},{"王五",23,"男",97}};


您可能感興趣的試卷

你可能感興趣的試題

3.單項選擇題數(shù)據(jù)結(jié)構(gòu)里,定義名稱為plan結(jié)構(gòu)體,其有5個元素的結(jié)構(gòu)體數(shù)組的定義方式是()。

A.struct plan數(shù)組名[5];
B.struct plan數(shù)組名[10];
C.plan struct數(shù)組名[5];
D.plan數(shù)組名[5];