The memory is allocated in sequence for members of the structure:
+------------+------------------+-----+-----+-----+-----+-----+-----+
| | ........ | | | | | | |
| | | | | | | | |
+------------+--------+---------+-----+-----+-----+-----+-----+-----+
+ + | name[0] name[nam-1]
+------+-----+ | +------------------+----------------+
| | |
| | |
v v v
number padding name[nam]
But, unlike arrays, the allocated memory for the structure may or may not be packed, i.e. there may be some filling after the allocated space of any member (but filling is not allowed before the first element).