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

Is c++ primer good for beginners?

593


Is c++ free?

586


Do the names of parameters have to agree in the prototype, definition, and call to the function?

603


What does it mean to declare a destructor as static?

629


What are the advantages of inheritance in c++?

659






Differentiate between declaration and definition.

590


What are the various compound assignment operators in c++?

553


Out of fgets() and gets() which function is safe to use?

645


Write about the local class and mention its use?

617


Where the memory to the static variables is allocated?

562


What apps are written in c++?

607


Difference between delete and free.

621


What are the extraction and insertion operators in c++?

565


Is there a c++ certification?

606


Is c++ used anymore?

600