• Gentoo1337@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      1 year ago

      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

    • fullcircle@vlemmy.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      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.

    • wicked
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Maybe it’s something about not knowing if the last element is the top of the stack or the bottom of the stack?