Skip to content

Instruction 1 POP

HoverCatz edited this page Feb 8, 2024 · 1 revision

This will POP (aka remove) the last element (the top/the right-most/the last added element) on the stack.

Stack before: ${[\space\color{#947cdd}A\space\color{white}, \space\color{#947cdd}B\color{white}\space, \space\color{#947cdd}C\color{white}\space]}$

POP

Stack after: ${[\space\color{#947cdd}A\space\color{white}, \space\color{#947cdd}B\color{white}\space]}$

Value popped: ${[\space\color{#947cdd}C\color{white}\space]}$

Clone this wiki locally