Follow

Translate

Tuesday, March 15, 2016

POP(STACK, TOP, ITEM):   This procedure deletes the top element of STACK and assigns it to the variable ITEM

1.   [Stack has an ITEM to be remove?]
      If TOP = 0, then: Print:UNDERFLOW, and Return.

3.  Set ITEM: =.STACK[TOP]  [Assigns top element to ITEM]

2.  Set TOP: = TOP -1. [Decrease top by 1 ].

4. Return.

If You want to learn about the technology, computer science & engineering, web programming, freelancing, earning please click here :CSE SOLVE If You want to learn about the technology, computer science & engineering, web programming, freelancing, earning please click here :CSE SOLVE

0 comments:

Post a Comment