CSC 382 Computer Lab 3
CSC 382 Computer Lab 3
It is an Abstract data type ADT and by ADT it means it is made up of primitive datatype
but operation and implementation is hidden from the user.
So we say that in Stack terminologies, insertion operation is called push while removal
operation is called pop.
Its also worthy to note that at any given time we can only access the top element of the
stack.
Endif
Else
Top = top+1
Stack[top] = data
End else
End procedure
Assignment
Impelement