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;
struct Products
{
int id;
char *cat;
char *name
};
typedef struct Inventory Inventory;
struct Inventory
{
char* currency;
int size;
Products prods; // or Products *prods;
};