Qus:    What is a stack? What is a heap? Give the differences between the two?
Oct 29, 2020 14:18 DotNet 2 Answers Views: 1004 SAI
Prev Next
Answers (2)
DIVYA Oct 30, 2020 09:05
Answer:   Stack is a place in the memory where value types are stored. Heap is a place in the memory where the reference types are stored.
Check this link for the differences

PARTH Nov 09, 2020 14:10
Answer:   Stack is used for static memory allocation and Heap for dynamic memory allocation, both stored in the computer's RAM. Variables allocated on the heap have their memory allocated at run time and accessing this memory is a bit slower, but the heap size is only limited by the size of virtual memory.

Post Your Answer
Guest User

Not sure what solution is right for you?

Choose the right one for you.
Get the help of the experts and find a solution that best suits your needs.


Let`s Connect