---
title: "What is a stack?"  
description: "What is a stack?"  
author: "Amara Halston"  
published: 2017-12-27  
canonical: https://answers.mindstick.com/qa/32109/what-is-a-stack  
category: "technology"  
tags: ["c language"]  
reading_time: 1 minute  

---

# What is a stack?

What is a stack?

## Answers

### Answer by Sangsaptak Pal

[Stack](https://www.geeksforgeeks.org/stack-data-structure/) is a linear data structure which follows a particular order in which the operations are performed. The order may be LIFO i.e. Last In First Out or FILO i.e. First In Last Out. There are many real life examples of stack like the plates in a canteen. There are various operations that can be performed on stack for data retrieval and manipulation. These operations are :

- Push : Inserts data
- Peek : Shows the last inserted data in stack
- Pop : Removes the last inserted data in stack

![What is a stack?](https://media.geeksforgeeks.org/wp-content/cdn-uploads/gq/2013/03/stack.png)


---

Original Source: https://answers.mindstick.com/qa/32109/what-is-a-stack

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
