Reputation: 7398
I know the basics of the Stack, and the Heap, but are there any other areas in a PC's memory that a program can access and store temporary data?
Upvotes: 3
Views: 1163
Reputation: 7673
Usually, you allocate small-sized temporary variables on the stack. You request memory from the heap for larger chunks. But you can also map a file into memory.
Below is a representation of system memory by kind.
Source: this very-well explained article: Understanding Memory that should answer most of your questions.
Upvotes: 2