语法*第九章*2 结构体初始化及定义

#include<stdio.h>
struct student{
   int num;
   char name[20];
   float score;
};
 int main(void){
   struct student s1={20,"bowen",89.0};
   printf("%d %s %f",s1.num,s1.name,s1.score);
}
原文地址:https://www.cnblogs.com/sunnybowen/p/8973029.html