C Programming20755 marksDynamic Memory Allocation
What is dynamic memory allocation? Discuss the use of malloc() in dynamic memory allocation with example. [1+4]
What is dynamic memory allocation? Discuss the use of malloc() in dynamic memory allocation with example. [1+4]
--- (a) What is Dynamic Memory Allocation? Dynamic memory allocation is the process of allocating memory to a program at the time of execution (runtime) rather than at compile time. In static memory allocation, the size of memory (e.g., an array) is fixed at compile time and cannot be changed dur...