Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
4th Edition
ISBN: 9780134787961
Author: Tony Gaddis, Godfrey Muganda
Publisher: PEARSON
Question
Book Icon
Chapter 20.3, Problem 20.2CP
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
Look at how well the stack works when allowed to do what it does best.
How well does the stack work when left alone?
Evaluate the following postfix expression using stack. 2 10 + 9 6 - /
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