Quick question about populating arrays

marco_c:
You can. You need to enclose all the elements for a structure within curly braces and separate these groups by comms.. Essentially each array element is a group of variables instead of the individual items if a simple array.

struct_type data[3] = {{1,2,3},{3,4,5},{6,7,8}};

So I can't just populate one of the elements?

Would this work

struct_type data[3] = {{1,,},{3,,},{6,,}};