Example of push and pop
push(2)
2
push(3)
push(8)
8
pop()
current
top of
stack
(pop here has the
return value 8)
Previous slide
Next slide
Back to first slide
View graphic version