Datos Punteros e Implementación Dinámica de Pilas
Datos Punteros e Implementación Dinámica de Pilas
Datos Punteros e Implementación Dinámica de Pilas
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
procedure liberar(p:in out pila) is<br />
aux:ptDato;<br />
begin<br />
aux:=p.cim;<br />
while aux/=null loop<br />
p.cim:=p.cim.sig;<br />
disponer(aux);<br />
aux:=p.cim;<br />
end loop;<br />
p.alt:=0;<br />
end liberar;