2075 9

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...

Up nextWhat is structure? Create a structure rectangle with data members length and breath. [2+3]