Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
Arrays
6.5K+ articles
C++
4.3K+ articles
Strings
3.3K+ articles
STL
1.3K+ articles
Data Structures
1.1K+ articles
Stack
436+ articles
cpp-stack-functions
29+ articles
cpp-stack
79 posts
Recent Articles
Popular Articles
How to Check if a Stack is Empty in C++?
Last Updated: 12 March 2024
In C++, we have a stack data structure that follows a LIFO (Last In First Out) rule of operation. In this article, we will learn how to check if a stack is empty in C++.Ex...
read more
C++ Programs
C++
Picked
STL
cpp-stack
cpp-stack-functions
CPP Examples
How to Find the Size of a Stack in C++?
Last Updated: 05 March 2024
In C++, the stack is a container that follows the Last In First Out (LIFO) rule. While working with a stack, the size of the stack is required in various operations. In th...
read more
C++ Programs
C++
Picked
STL
cpp-stack
CPP Examples
How to Create a Stack of Map in C++?
Last Updated: 12 March 2024
In C++, the std::stack is a container that follows the LIFO (Last In, First Out) rule, whereas std::map is an associative container that stores key-value pairs. In this ar...
read more
C++ Programs
C++
Picked
STL
cpp-map
cpp-stack
CPP Examples
How to Create a Stack of Arrays in C++?
Last Updated: 12 March 2024
In C++, the std::stack is a container that follows the LIFO (Last In, First Out) rule, whereas std::array is a sequence container that stores elements in contiguous memory...
read more
C++ Programs
C++
Picked
STL
cpp-array
cpp-stack
CPP Examples
How to Declare a Stack in C++?
Last Updated: 04 March 2024
In C++, Stacks are a type of container adaptor with LIFO(Last In First Out) type of working, where a new element is added at one end (top) and an element is removed from t...
read more
C++ Programs
C++
Picked
STL
cpp-stack
CPP Examples
How to Reverse a Word Using Stack in C++?
Last Updated: 12 March 2024
In C++, we have a stack data structure that follows the Last In First Out (LIFO) principle. In this article, we will learn how to reverse a word using a stack in C++.Examp...
read more
C++ Programs
C++
Picked
STL
cpp-stack
CPP Examples
How to Create a Stack of Stack in C++?
Last Updated: 07 May 2024
In C++, the stack is a container that follows the LIFO (Last In, First Out) order in which the elements are inserted and removed from it. In this article, we will learn ho...
read more
C++ Programs
C++
Picked
STL
cpp-stack
CPP Examples
How to Create a Stack of Lists in C++?
Last Updated: 18 March 2024
In C++, a list is a sequence container that allows dynamic insertion and deletion operations, whereas a stack is a data structure that follows last-in, first-out (LIFO). I...
read more
C++ Programs
C++
Picked
STL
cpp-stack
cpp-list
CPP Examples
How to Create a Stack of Deque in C++?
Last Updated: 11 March 2024
In C++, the stack is a container in which new elements are added from one end (top) and removed from that end only whereas a deque (double-ended queue) are sequence contai...
read more
C++ Programs
C++
Picked
STL
cpp-stack
cpp-deque
CPP Examples
Infix to Postfix Conversion using Stack in C++
Last Updated: 18 March 2024
Infix expression is a common way of writing mathematical expressions where operators are written between the operands whereas postfix is a type of expression in which a pa...
read more
C++ Programs
C++
Picked
STL
cpp-stack
CPP Examples
How to Create a Stack of Unordered_Multiset in C++?
Last Updated: 18 March 2024
In C++, the stack is a container in which new elements are added from one end (top) and removed from that end only. In this article, we will learn how to create a stack of...
read more
C++ Programs
C++
Picked
STL
cpp-stack
cpp-unordered_multiset
CPP Examples
How to Create a Stack of Unordered_Map in C++?
Last Updated: 18 March 2024
In C++, the stack is a container that follows the LIFO(Last In First Out) rule where new elements are added from one end (top) and removed from that end only. An unordered...
read more
C++ Programs
C++
Picked
STL
cpp-unordered_map
cpp-stack
CPP Examples
How to Create a Stack of Unordered_Multimap in C++?
Last Updated: 19 March 2024
In C++, an unordered_multimap is an associative container that contains key-value pairs allowing multiple elements with the same key. In this article, we will learn how to...
read more
C++ Programs
C++
Picked
STL
cpp-stack
cpp-unordered_multimap
CPP Examples
How to Reverse a Stack in C++?
Last Updated: 22 March 2024
In C++, stacks are containers that store the elements in the last in-first out order(LIFO). In, this article, we will learn how we can reverse a stack in C++.ExampleInput:...
read more
C++ Programs
C++
Picked
STL
cpp-stack
cpp-stack-functions
CPP Examples
How to Compare Two Stacks in C++?
Last Updated: 01 April 2024
In C++, a stack is a type of data structure where elements are inserted and removed according to the Last-In-First-Out (LIFO) principle. In this article, we will see how t...
read more
C++ Programs
C++
Picked
STL
cpp-stack
CPP Examples
1
2
3
4
5
6
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !