Wednesday, October 28, 2009
Push
Push adds an item at the top of the stack. After the push, the new item becomes the top. The only potential problem with this simple operation is that we must ensure that there is room for the new item. If there is not enough room, then the stack is in an overflow state and the item cannot be added. Figure 2 shows the push stack operation.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment