The pop() member function determines if the stack is empty by calling the _____ member function.
Skill/Topic: Stacks using Linked List
A) removeback()
B) isEmpty()
C) removedfront()
Explanation: The pop() member function must determine if the stack is empty, or it will attempt to remove a node that isn’t on the stack. The pop() member function determines if the stack is empty by calling the isEmpty() member function, which you must define as part of the StackLinkedList class.
-
Interview Candidate
- Dec 10th, 2005
- 1
- 4701
Showing Answers 1 - 1 of 1 Answers
Related Answered Questions
Related Open Questions
The pop() member function determines if the stack is empty by calling the _____ member function.
A) removeback()
B) isEmpty()
C) removedfront()
Explanation: The pop() member function must determine if the stack is empty, or it will attempt to remove a node that isn’t on the stack. The pop() member function determines if the stack is empty by calling the isEmpty() member function, which you must define as part of the StackLinkedList class.
Related Answered Questions
Related Open Questions