-1

I have some confusion about where the actual data and addresses are stored on the computer itself. I can't seem to find any information about it. I'm guessing that the heap is on the RAM because it is a pool of memory and the stack lives in the CPU registry.

Am I completely wrong or somewhat correct?

trincot
  • 317,000
  • 35
  • 244
  • 286
foobar5512
  • 2,470
  • 5
  • 36
  • 52

1 Answers1

0

Both Stack and Heap are stored in RAM. Without me having to go on, see this thread for a very useful discussion/explanation on this topic: What and where are the stack and heap?

Community
  • 1
  • 1
jaadooviewer
  • 368
  • 1
  • 10