I would have assumed this would somehow create an array of three structures with only the first member defined
No, it's not that way. Basically it creates an array of one element, with all the members intialized.
Quoting C11
, chapter §6.7.9
Each brace-enclosed initializer list has an associated current object. When no
designations are present, subobjects of the current object are initialized in order according
to the type of the current object: array elements in increasing subscript order, structure
members in declaration order, and the first named member of a union. [...]
and
Each designator list begins its description with the current object associated with the
closest surrounding brace pair. Each item in the designator list (in order) specifies a
particular member of its current object and changes the current object for the next
designator (if any) to be that member.150) The current object that results at the end of the
designator list is the subobject to be initialized by the following initializer.
and
[...] If the initializer of
a subaggregate or contained union begins with a left brace, the initializers enclosed by
that brace and its matching right brace initialize the elements or members of the
subaggregate or the contained union. Otherwise, only enough initializers from the list are
taken to account for the elements or members of the subaggregate or the first member of
the contained union; [...]
Basically, your code should ideally look like
the_data_t my_data[] = {{10, 'a', 30}};
to visualize initializing one element.
OTOH, what you expected may be achieved by
the_data_t my_data[] = {{10}, {'a'}, {30}};
where it creates an array of 3 elements, all having the member variable a
initialized.
That said,
the_data_t my_data[] = {{10, 'a', 30}};
is equivalent to writing
the_data_t my_data = {10, 'a', 30};
except the part, my_data
will not be an array anymore (but what good is an one element array, in general, either?).