Difference between stack and frame?


#1

Hello,

At the very beginning the chapter, it says,

So, the stack and the frame terms are same?


#2

No, they are not the same. Think of stack as an ordered container of frames - A last-in first-out container.

The stack allows easy access to the last frame pushed on to it.


#3

Thanks, ibex10

[quote=“ibex10”]No, they are not the same. Think of stack as an ordered container of frames - A last-in first-out container.

The stack allows easy access to the last frame pushed on to it.[/quote]