小编mik*_*ike的帖子

例如,为什么我们只是初始化3个中的1个成员时,为什么结构的所有元素都初始化为0

例如:

typedef struct student { 

     int rollno;
     float cgpa;
     char name[20];

}Student;

Student me= {0,0}; // will intilize name with all zeros
Run Code Online (Sandbox Code Playgroud)

c structure

2
推荐指数
1
解决办法
127
查看次数

标签 统计

c ×1

structure ×1