Best way to handle memory allocation in C?

后端 未结 12 1865
春和景丽
春和景丽 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:36

    Well in C you have to do all you memory management manually as you already have discovered. That should be no surprise.

提交回复
热议问题