Did you like how we did? Rate your experience!

4.5

satisfied

46 votes

If I want to write C programs that handle memory management, what do?

Youd need to learn about the stack and the heap and how C allocates memory in each of those places. Cs memory concepts are rather basic so its not hard to learn. Pointers, references, dynamic allocation, freeing (dynamic deallocation), zeroing memory (memset) etc. Youd also be in a good position if you understood the data itself thats being stored so that can involve the width, alignment, endianness etc. Theres really not a lot to it.

100%
Loading, please wait...