Computer Science, asked by ghimireraj022425, 9 days ago

differentiate between static memory allocation and dynamic memory allocation with sutiable program

Answers

Answered by manya0571
2

Static Memory Allocation: Static Memory is allocated for declared variables by the compiler. The address can be found using the address of operator and can be assigned to a pointer. The memory is allocated during compile time.

Dynamic Memory Allocation: Memory allocation done at the time of execution(run time) is known as dynamic memory allocation. Functions calloc() and malloc() support allocating dynamic memory. In the Dynamic allocation of memory space is allocated by using these functions when the value is returned by functions and assigned to pointer variables.

Answered by snakequeen576
0

Answer:

Static Memory Allocation

6 In static memory allocation, once the memory is allocated, the memory size can not change.

Dynamic Memory Allocation

In dynamic memory allocation, when memory is allocated the memory size can be changed.

Explanation:

your answer

please mark me as brainliest ✨

Similar questions