Question: what is the difference between stack and ram?
Answer: What is the difference between stack memory and RAM? ... Stacks are very fast to access compared to the dynamically created heap memory because of their structured storage and high probable matching to the C.P.U cache. RAM,my dear friend is just the p. Stack is the physical space allocated to each thread in its runtime.