Mastering Memory Management with malloc and free in C
Dynamic memory management centers on the functions malloc and free, which manage memory on the heap. When calling malloc(size), the allocator looks for a free block that fits the request.
Read the attached article below👇