Problem Solving with C++ plus MyProgrammingLab with Pearson eText-- Access Card Package (9th Edition)
Problem Solving with C++ plus MyProgrammingLab with Pearson eText-- Access Card Package (9th Edition)
9th Edition
ISBN: 9780133862218
Author: Walter Savitch
Publisher: PEARSON
Question
Book Icon
Chapter 13.2, Problem 11STE
Program Plan Intro

Stack:

  • A stack denotes a data structure that retrieves data in reverse of order in which data is stored.
  • The top items present in the stack are to be removed first.
  • It is called as a last in first out data structure.
  • It could be used for keeping track of function calls in a program.
  • The insertion as well as removal of elements takes place at same end.
  • The upper part of stack where insertion and removal takes place is known as “top”.
  • The part opposite to “top” is termed as “base” of stack.
  • It provides an ordering based on length of time in collection.
  • The newer items will be near top whereas older items are near base.

Blurred answer
Students have asked these similar questions
Would you kindly explain the distinction between the restricted and unbounded versions of the stack?
Can you explain what the difference is between the constrained and unbounded version of the stack?
Could you please clarify the difference between the limited version of the stack and the unbounded version of the stack?
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education