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

Does c++ have arraylist?

638


What are c++ storage classes?

706


What is the object serialization?

736


Explain unexpected() function?

683


What do you mean by funtion prototype?

671






Difference between overloaded functions and overridden functions

681


How is new() different from malloc()?

738


What is bubble sort c++?

675


What is a Default constructor?

1067


Describe friend function & its advantages.

804


What is meant by entry controlled loop? What all C++ loops are exit controlled?

681


What are member functions used in c++?

658


What is the full form of ios?

646


Why was c++ created?

653


When there is a global variable and local variable with the same name, how will you access the global variable?

730