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 improper inheritance have a potential to wreck a project?

626


What is the identity function in c++? How is it useful?

550


What are shallow and deep copies?

629


Can a program run without main function?

617


What do you understand by zombie objects in c++?

611






What is the error in the code below and how should it be corrected?

302


Explain the difference between new() and malloc() in c++?

622


Where can I run c++ program?

600


Can we sort map in c++?

589


Which one between if-else and switch is more efficient?

602


What is late binding c++?

538


What is the difference between structures and unions?

580


How do you declare a set in c++?

532


What is format for defining a structure?

586


Can you explicitly call a destructor on a local variable?

600