You must log in or register to comment.
- bronzing@lemmy.fmhy.mlEnglish3 years
Can someone explain the joke? I know what stacks are but I don’t get it…
- Gentoo1337@sh.itjust.worksEnglish3 years
It’s the last element, so it has to wait for all the other elements on top of it to be popped in order to be accessed
I think op meant last as in the element on the bottom
- alexcoder04@programming.devEnglish3 years
Yea, I meant the last element as in the one at the bottom, but now I see that it‘s a little confusing…
- Gentoo1337@sh.itjust.worksEnglish3 years
Yea I also thought the last one was the bottom one but then I remembered it was lifo
- wicked@programming.devEnglish3 years
Maybe it’s something about not knowing if the last element is the top of the stack or the bottom of the stack?
- fullcircle@vlemmy.netEnglish3 years
He looks like he’s guarding something? A sentinel value in an array-based stack implementation in C or something? I don’t know, I’m a bit confused too.

