SHARE
TWEET

Untitled

a guest Sep 20th, 2017 213 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. procedure push(in/out:head;in:elem)
  2. begin
  3.      var stack:head,node
  4.      var integer:elem
  5.      node.info:=elem
  6.      node.link:=NULL
  7.      if(head=NULL)then
  8.         head:=node
  9.      else
  10.         node.link:=head
  11.         head;=node
  12.      endif
  13. end push
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top