Thursday, 18 July 2013

Algorithm for POP an Element from Stack

POP(S,MAXSTK,TOP,item)
  1. If TOP=NULL thePrint Underflow and Return
  2. Item =S[TOP]
  3. TOP=TOP-1
  4. Exit 

No comments:

Post a Comment