The Startup
Published in

The Startup

How to Implement a Linked Stack in C

A stack is a set of items stored using a last-in first-out or LIFO policy. This means that the last thing that is inserted to the stack is the first thing that is removed from the stack. Often, we might think of a stack like a stack of dinner plates. When we place a plate onto the stack, we will place it on the top, and in turn when we want to take a plate off the stack, we also remove it from the top. This is the same sort of structure we wish to implement with a programming stack.

Let’s start by having a look at a visual example of a stack. Suppose I insert three…

--

--

--

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

How To “Complete the Square” Visually

Azure Functions triggered by Azure Event Hub using Managed Identity

Helm Vs Operators.. Still a better love story than Twilight

MuleSoft — Decoding Batch Processing

Reentrant (Recursive) Async Lock is Impossible in C#

Meet Cochl’s Team: Haneul Lee, Front-end Engineer

Mumbling CodeWars 7kyu

Most popular backend frameworks for 2021

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Scott Cosentino

Scott Cosentino

Computer programmer and computer security. Youtube tutorials at: https://www.youtube.com/channel/UC7KBXRtv-EkiOFsRtpBxIbg

More from Medium

An Intro to Git-Submodules

Introduction to Time Complexity and Big O Notation

Creating an Esoteric Programming Language — Tokenization

How Computer Memory Works With Rust