* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
876 B
876 B
Dynamic Memory Allocation
Dynamic memory allocation reserves memory on the heap at runtime, when the amount of memory needed is not known in advance or needs to outlive the function that created it. C provides malloc, calloc, and realloc for allocation and free for releasing memory back to the system. Every successful allocation must eventually be paired with exactly one free call, and using memory after freeing it or freeing it twice both lead to undefined behavior.
Visit the following resources to learn more: