对于未由指定初始化程序命名的字段会发生什么?
在C99(而不是C ++)中,可以使用以下语法初始化结构:
struct info
{
char name[8+1];
int sz;
int typ;
};
struct info arr[] =
{
[0] = { .sz = 20, .name = "abc" },
[9] = { .sz = -1, .name = "" }
};
未指定的字段会发生什么?
没有找到相关结果
已邀请:
1 个回复
郡晒景沧