体新专题

C语言之结构体新写法(三十八)

1.方式一  #include <stdio.h>struct Student {char *name;int ival;char *chval;};struct Student stu[] = {{.name = "JIM",.ival = 5,.chval = "ARM",},{.name = "GReen",.ival = 6,.chval = "X86",}, };int main(