To create an array of union objects, you act as though you were creating an
array of structures, but you substitute the union
symbol for the
struct
symbol:
union trade trades[100];
Similarly, you can create an array of pointers to union objects, which you subsequently create at run time:
union trade *trade_pointers[100];