Data Structures Question:

What does isEmpty() member method determines?

Tweet Share WhatsApp

Answer:

isEmpty() checks if the stack has at least one element. This method is called by Pop() before retrieving and returning the top element.

Download Data Structures PDF Read All 48 Data Structures Questions
Previous QuestionNext Question
What method removes the value from the top of a stack?What is a queue in data structure?