difference between stack and heap in python
Answers
Answered by
2
Python divided the RAM into tow parts called Run-time stack and the Heap. ... The Heap is area of RAM where all values (objects) are stored. The run-time stack never contains the object. The run-time stack store only references pointed to corresponding objects in the heap.
follow me !
Answered by
2
Answer:
In a stack, the allocation and deallocation is automatically done by whereas, in heap, it needs to be done by the programmer manually. Handling of Heap frame is costlier than handling of stack frame.
Explanation:
Thankss
Similar questions
Social Sciences,
6 months ago
English,
6 months ago
Hindi,
6 months ago
English,
1 year ago
Economy,
1 year ago