Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
3rd Edition
ISBN: 9780134038179
Author: Tony Gaddis, Godfrey Muganda
Publisher: PEARSON
Question
Book Icon
Chapter 21.3, Problem 21.1CP
Program Plan Intro

Stack:

  • A stack is a linear structure.
  • It follows the order LIFO (last-in-first-out) for performing operations.
  • Mainly two operations are performed in stack which are,
    • Push() – Add item to stack.
    • Pop() – Remove item from stack.

Blurred answer
Students have asked these similar questions
What are the operations that can be performed on a stack?
What are the different operations that can be performed on a stack?
If a resource in a stack cannot be created, what happens?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning