Array of structs in C

后端 未结 5 1618
执笔经年
执笔经年 2021-01-05 23:33

I\'m trying to create an array of structs and also a pointer to that array. I don\'t know how large the array is going to be, so it should be dynamic. My struct would look s

5条回答
  •  攒了一身酷
    2021-01-06 00:25

    Based on your replies to other answers it looks like you need a dynamic data structure like a linked list. Take a look at the queue(3) set of facilities.

提交回复
热议问题