我从互联网上得到了以下代码:
结果是:
struct {
int x;
struct {
int y, z;
} nested;
} i = { .nested.y = 5, 6, .x = 1, 2 };
结果是:
i.nested.y = 2
i.nested.z = 6
但我不知道为什么,网络文章没有任何解释。
.x = 1, 2
设置为继续。 - BLUEPIXY