Data Structures Question:
What method removes the value from the top of a stack?
Answer:
The pop() member method removes the value from the top of a stack, which is then returned by the pop() member method to the statement that calls the pop() member method.
Previous Question | Next Question |
What method is used to place a value onto the top of a stack? | What does isEmpty() member method determines? |