2078 9

CSC115 ยท 2078 ยท 5 marks

Explain dynamic memory allocation with example.

Explain dynamic memory allocation with example. [5]

C ProgrammingChapter 9: PointersDynamic Memory Allocation

The process of allocating memory at the time of execution (runtime) is called dynamic memory allocation. Unlike static memory allocation where the size is fixed at compile time, dynamic memory allocation allows a program to request and release memory as needed during execution. --- Consider a sta...