Best way to handle memory allocation in C?

后端 未结 12 1966
春和景丽
春和景丽 2021-01-31 11:58

I think I\'ve got a good grasp on how to handle memory in C++ but doing it in C is different I\'m a bit off.

In C++ I\'ve got constructors and destructors, I\'ve got the

12条回答
  •  名媛妹妹
    2021-01-31 12:19

    While writing this I've realized this is more a question about me understanding the flow of C than anything else, but one question at a time.

    I honestly think you should read up on K&R if you haven't.

提交回复
热议问题