Computer Science, asked by shadysrulxxx4562, 1 year ago

differentiate between static memory allocation and dynamic memory management. also give the name of data structure that uses these type of memory management.

Answers

Answered by lucky1829
0
Static memory allocation  means, that the memory for your variables is allocated when the program starts. The size is fixed when the program is created. It applies to global variables, file scope variables, and variables qualified with static defined inside functions . Dynamic memory management  is a bit different. You now control the exact size and the lifetime of these memory locations. If you don't free it, you'll run into memory leaks, which may cause your application to crash, since at some point of time, system cannot allocate more memory.
Similar questions