Stack Memory and Heap Memory

221 views

Stack Memory and Heap Memory

In: 1

3 Answers

Anonymous 0 Comments

You’re in your kitchen making dinner.

You have a recipe (your program)

You get your ingredients from the pantry/ refrigerator (heap storage)

As you’re making your dinner, you’re chopping stuff, mixing stuff and putting it aside on the counter to use in shortly (stack memory).

Not a perfect analogy but you get the gist.

You are viewing 1 out of 3 answers, click here to view all answers.