Hi, I have the following 2 struct definitions:
Code:typedef struct { int x; char s[]; } a; typedef struct { int x; a s[]; } b;
How can I initialise an instance of b? I thought something like the following would work, but is doesn't.
This will compile without error or warning, but only initialises zzz.s[0]. zzz.s[1] contains garbage.Code:static b zzz = {100, {{1, "one"}, {2, "two"} }};
PS. No, this isn't homework.![]()