+ 3

Differentiate between STACK MEMORY and HEAP MEMORY.

2nd Mar 2017, 5:42 AM
Preet Patel
Preet Patel - avatar
4 Answers
+ 11
I cannot REMEMBER. My MEMORY is a BROKEN MEMORY.
2nd Mar 2017, 5:58 AM
Ahri Fox
Ahri Fox - avatar
+ 3
The gist of both is that stack memory is static and automatically handled by the compiler, whereas heap memory is dynamic, but must be allocated and freed manually and tends to be unstable.
2nd Mar 2017, 6:22 AM
DaemonThread
DaemonThread - avatar
+ 2
1. heap memory unlimited size, but slower access time, used in dynamic memory allocation 2. stack faster access but limited size
2nd Mar 2017, 7:03 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
@Ahri Fox 😂
2nd Mar 2017, 6:00 AM
Preet Patel
Preet Patel - avatar