What is the difference between stack and heap?
Answer / Abdul Mutlib Khan
Stack and heap are two areas in a computer's memory used for data storage. The stack is used for local variables, function calls, and return addresses, while the heap is used for dynamic memory allocation such as objects and arrays.nnThe stack has a fixed size and follows a Last-In-First-Out (LIFO) principle, meaning the last item added to the stack is the first one to be removed. In contrast, the heap does not have a fixed size and follows a dynamic memory allocation policy.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I open a csv file on my phone?
Explain stack and heap?
Assume that system is running low on memory. What can system do for suspended apps?
Find the letter count in UItextfield? Including first character?
Explain how to hide images in ios?
Explain what is a framework?
What is oops in ios?
What is nsmanagedobjectcontext? What are the different concurrency types? Explain them.
what is the difference between bounds and frame?
What is framework in ios?
What’s the difference between not-running, inactive, active, background and suspended execution states?
What persistent storage core data uses to save data?