I'm confused as when should I use a pointer to another struct or contain a copy. For instance, should I use `Products *prods;` or `Products prods;` within Inventory? and how do I `malloc`?
typedef struct Products Products;
typedef struct Inventory Inventory;
Products prods; // or Products *prods;
以上就是When to use a pointer to another struct in nested structs in C的详细内容，更多请关注web前端其它相关文章！