GTU # 3110003
USING
Dynamic {C}
Programming
Memory
Allocation
PROGRAMING OF PROBLEM SOLVING (PPS)
Prof. Nilesh Gambhava
LAXMI INSTITUTE OF TECHNOLOGY
Computer Engineering Department, (LIT)
Darshan Institute of Engineering & Technology, Rajkot
, Dynamic Memory Allocation (DMA)
If memory is allocated at runtime (during execution of program) then it i
dynamic memory.
It allocates memory from heap (heap: it is an empty area in memory)
Memory can be accessed only through a pointer.
When DMA is needed?
It is used when number of variables are not known in advance or large in size.
Memory can be allocated at any time and can be released at any time during r
Prof. Nilesh Gambhava #3110003 (PPS) – Introduction to C