<aside> <img src="/icons/home_green.svg" alt="/icons/home_green.svg" width="40px" />

Back to Home

</aside>

https://jennychen9827sbu.github.io/CAD281/malloc.html


What is malloc?

malloc (memory allocation) is a function in C used to dynamically allocate memory from the heap during runtime.


Why use malloc?


Where is the memory allocated?


When to use malloc?