04-28-2011, 09:14 PM
Could you please explain the difference between Heap and Stack memory, Do we have any restriction on limitation on each of the memory type,
thanks
thanks
|
difference between Heap and Stack memory
|
|
04-28-2011, 09:14 PM
Could you please explain the difference between Heap and Stack memory, Do we have any restriction on limitation on each of the memory type,
thanks
04-28-2011, 09:14 PM
Heap and stack are both memory area. The primitive data types are created on stach whereas objects are created on heap memory area. The stack stores the reference of an object (stored on heap).
0300-9520262 Get solution in 24 hour |cpmputer & internet mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
03-30-2015, 04:29 PM
Stack is used for static memory allocation and Heap for dynamic memory allocation, both stored in the computer's RAM .
You can use the stack if you know exactly how much data you need to allocate before compile time and it is not too big. You can use heap if you don't know exactly how much data you will need at runtime or if you need to allocate a lot of data. More about.......Stack and Heap Helsy
04-01-2015, 03:36 PM
Good to see that
|
|
« Next Oldest | Next Newest »
|