COMPUTER SCIENCE ILLUMIN.-TEXT
COMPUTER SCIENCE ILLUMIN.-TEXT
7th Edition
ISBN: 9781284156010
Author: Dale
Publisher: Jones & Barlett
Question
Book Icon
Chapter 8, Problem 41E
Program Plan Intro

Stack:

  • Stack is a type of container used to insert and remove an item according to last-in-first-out (LIFO) principle.
  • In stack the access of items are made at one end only.
  • The two operations of stack are,
    • Push – It is the operation to add an item to the top of the stack.
    • Pop – It is the operation to remove an item from the top of the stack.
  • Example – CD (Compact Disk) container because it removes the CD in a last-in-first-out basis.

Blurred answer