How to allocate memory for for a structure inside of a stucture? (in C)

前端 未结 0 895
攒了一身酷
攒了一身酷 2020-12-09 23:10

So I have these structures

```
// structures.
typedef struct{
    char *name;
    int price;
    double weight;
}item;

typedef struct{
    item **items;
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题