what is difference between static and dynamic memory allocation in c++
Answers
Answered by
1
Answer:
Explanation:
In the static memory allocation, variables get allocated permanently. In the Dynamic memory allocation, variables get allocated only if your program unit gets active. Static Memory Allocation is done before program execution. ... In static memory allocation, once the memory is allocated, the memory size can not change.
Answered by
1
In the static memory allocation, variables get allocated permanently. In the Dynamic memory allocation, variables get allocated only if your program unit gets active. Static Memory Allocation is done before program execution. ... In static memory allocation, once the memory is allocated, the memory size can not change.
Hope it helps u mate ❣️
Similar questions
Physics,
1 month ago
Math,
3 months ago
Social Sciences,
3 months ago
Math,
10 months ago
Math,
10 months ago