Suppose I define a structure like this
To be used 'XXX' times in another structure. What is different between:Code:typedef struct foo { /* some data */ } foo_t;
and..Code:typedef struct yyy { foo_t name[XXX]; } yyy_t;
?? If they are the same, which is preferred and why?Code:typedef struct yyy { struct foo name[XXX]; } yyy_t;
Thanks!