a isFull b Push c the constructors d top e pop and topSoluti
a) isFull
b) Push
c) the constructors
d) top
e) pop and top
Solution
The only point to note in this code is the use of the constant STACKSIZE defined earlier. This is the bulk of the supporting code that we need to provide for our implementation of a stack. Push Refers as Adding Elements onto Stack. Creates an empty Stack. Returns a reference to the top element in the stack. Removes the object at the top of this stack and returns that object as the value of this function.
