With the help of an example differentiate between static and dynamic memory allocation ?
Answers
Answered by
1
Static Memory Allocation is done before program execution. Dynamic Memory Allocation is done during program execution. In static memory allocation, once the memory is allocated, the memory size can not change. In dynamic memory allocation, when memory is allocated the memory size can be changed.
Similar questions