#关于结构体数组初始化赋值问题
下面这两个代码为什么第二种不合法?
struct student{
int sno;
char name[20];
float score;
};
//合法的赋值
struct student students[3]={{2, "will",98},{3, "uuuu",95}};
//不合法的赋值
struct student students[3];
students[0].sno = 2;
students[1].sno = 3;