What is the stack?

Answer Posted / stranger

A stack is an abstract data type and data structure based on
the principle of Last In First Out (LIFO).A stack is an
ordered list of items.
Items are removed from this list in the reverse order to the
order of their addition.

There are two main operations: push and pop. The push
operation adds (stores) to the list. The pop operation
removes (deletes) an item from the list.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what is overriding?

613


What is the best c c++ compiler for windows?

557


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

329


Explain what happens when a pointer is deleted twice?

729


What is a c++ object?

613






What is the difference between prefix and postfix versions of operator++()?

587


Differentiate between a constructor and a destructor in c++.

558


What is the best way to take screenshots of a window with c++ in windows?

565


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

561


What is the importance of mutable keyword?

576


How many types of classes are there in c++?

589


How the virtual functions maintain the call up?

601


What does flush do c++?

549


What is data hiding c++?

595


What is singleton class in c++?

587