struct child {
char name[32];
int height;
};
struct child group_a[8];
I'd like to initialise every child in group_a with the same name and height, for example name = "XXX" and height = "100".
有没有比struct child group_a[8] = {{"XXX", 100}, {"XXX", 100}, ..., {"XXX", 100}}
更快的速度?