Stack Operations :

Following primitive operations are to be supported:

  1. CreateStack()

  1. DestroyStack()

  1. Push(element)

  1. Pop(element)

The following useful support operations are also going to be supported:

  1. Size() - returns the number of items in the stack

  1. IsEmpty() - returns true if the stack is empty, otherwise false

  1. Display() - Gives a picture of the stack contents on the screen