C memory management conventions: freeing memory allocated on heap by object allocated on stack

前端 未结 0 1100
栀梦
栀梦 2020-12-09 04:14

I think I\'m a bit confused with memory management conventions in C.

Let\'s say we have a struct that dynamically allocate data on the heap. This struct provides

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