---
title: "Discussion on \"Stack Implemented with Arrays and Templates in C++\" | Hashnode"
description: "Discussion on \"Stack Implemented with Arrays and Templates in C++\". What is a stack?\nA stack is a data structure that stores a collection of elements and has at least two operations associated with it:\n\npush        \npop\n\nPush and pop operation on a stack is done according to LIFO that is Last in, First Out order.\n\nPu..."
url: "https://hashnode.com/posts/stack-implemented-with-arrays-and-templates-in-c/5f41049f7d6e4770b16f8a58"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stack Implemented with Arrays and Templates in C++](https://blog.yuvraj.tech/stack-implemented-with-arrays-and-templates-in-c?utm_source=hashnode&utm_medium=feed)

What is a stack? A stack is a data structure that stores a collection of elements and has at least two operations associated with it: push pop Push and pop operation on a stack is done according to LIFO that is Last in, First Out order. Pu...

Aug 22, 2020 · 13 min read · blog.yuvraj.tech  
Updated Sep 1, 2020  
Read the article

-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#cpp](https://hashnode.com/tag/cpp)

## Written by

[Yuvraj Singh Jadon](https://hashnode.com/@yuvraajsj18)

@yuvraajsj18 · New Delhi, India

  
[View profile](https://hashnode.com/@yuvraajsj18)

Computer Science Student

Hello! I'm Yuvraj. I'm a Computer Science Student. I love to learn, create, and explore new things. I am currently doing a Bachelor of Computer Science from the University of Delhi.

## Responses 1

Markdown supported · ⌘↵ to post

[Sunayna Padhye](https://hashnode.com/@SunaynaPadhye)

[Aug 28, 2020](https://hashnode.com/posts/stack-implemented-with-arrays-and-templates-in-c/5f41049f7d6e4770b16f8a58/comment/5f48d49d3ba45c3bb00eef3b)

Helped a lot!

[Yuvraj Singh Jadon](https://hashnode.com/@yuvraajsj18)

[Aug 28, 2020](https://hashnode.com/posts/stack-implemented-with-arrays-and-templates-in-c/5f41049f7d6e4770b16f8a58/comment/5f48d49d3ba45c3bb00eef3b#reply-5f48d551d5cea73bd1150355)

Thanks, Sunayna!!
