Computer Science, asked by fk336733, 1 month ago

what is difference between static and dynamic memory allocation in c++

Answers

Answered by aqeelahmed6281310
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 prithvi10jan
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