#include <stdio.h> int main(void) { struct student { int number; char name[20]; char sex; } student1[2]={100,"lili",'w',101,"coco",'F'}; printf("%d",student1[0].number); //查看第一元素的name return 0; }