Explanation: as stack is based on lifo(last in first out) principle so the deletion takes place from the topmost element. thus pop operator removes topmost element.
Q. Which of the following statement is true about stack?
β
Correct Answer: (A)
pop operation removes the top most element
Explanation by: Mr. Dubey
as stack is based on lifo(last in first out) principle so the deletion takes place from the topmost element. thus pop operator removes topmost element.
Discussion
Question Analytics
611
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
81%
Success Rate