Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
C++
4.2k+ articles
C++ Programs
2.4k+ articles
STL
1.2k+ articles
cpp-vector
360+ articles
cpp-map
270+ articles
cpp-set
190+ articles
cpp-array
160+ articles
cpp-string
140+ articles
cpp-list
92 articles
cpp-deque
86 articles
CPP Examples
700+ posts
Popular Articles
Recent Articles
Linked List in C++
Last Updated: 02 May 2025
In C++, a linked list is a linear data structure that allows the users to store data in non-contiguous memory locations. A linked list is de
...read more
C++
Picked
C++ Linked List Programs
CPP Examples
CPP-DSA
How to Use HashMap in C++?
Last Updated: 28 May 2024
A HashMap is a data structure in which the elements are stored in key-value pairs such that every key is mapped to a value using a hash func
...read more
STL
C++
C++ Programs
cpp-unordered_map
Picked
CPP Examples
misc-cpp
How to Read From a File in C++?
Last Updated: 12 May 2025
Reading from a file means retrieving the data stored inside a file. C++ file handling allows us to read different files from our C programs.
...read more
cpp-file-handling
C++
C++ Programs
Picked
CPP Examples
Similar Topics
C++
4.2k+ articles
C++ Programs
2.4k+ articles
STL
1.2k+ articles
cpp-vector
360+ articles
cpp-map
270+ articles
cpp-set
190+ articles
cpp-array
160+ articles
cpp-string
140+ articles
cpp-list
92+ articles
cpp-deque
86+ articles
How to Remove an Element from Vector in C++?
Last Updated: 22 November 2024
In this article, we will learn how to remove a given element from the vector in C++.The most straightforward method to delete a particular e
...read more
STL
cpp-vector
C++
C++ Programs
Picked
CPP Examples
GCD of Two Numbers in C++
Last Updated: 07 March 2025
GCD (Greatest Common Divisor) or HCF (Highest Common Factor) of two numbers is the largest number that exactly divides both numbers. In this
...read more
C++
C++ Programs
C++ Basic Programs
CPP Examples
How to Access Elements in Set by Index in C++?
Last Updated: 08 November 2024
In C++, elements of a set cannot be accessed directly by index or position. However, we can work around this limitation using iterators. In
...read more
Technical Scripter
STL
C++
C++ Programs
cpp-set
Picked
Technical Scripter 2022
CPP Examples
How to Iterate Through a Vector Without Using Iterators in C++?
Last Updated: 19 November 2024
In this article, we will learn how to iterate through the vector without using iterator in C++.The most efficient method to iterate through
...read more
STL
cpp-vector
C++
cpp-containers-library
C++ Programs
CPP Examples
Find All Permutations of an Array using STL in C++
Last Updated: 15 November 2024
The permutation of an array refers to a rearrangement of its elements in every possible order. In this article, we will learn how to generat
...read more
STL
cpp-array
C++
Permutation and Combination
C++ Programs
CPP Examples
How to Find Minimum and Maximum Element of an Array Using STL in C++?
Last Updated: 28 October 2024
Given an array of n elements, the task is to find the minimum and maximum element of array using STL in C++.ExamplesInput: arr[] = {1, 45, 5
...read more
STL
cpp-array
C++
C++ Programs
CPP Examples
How to Reverse an Array using STL in C++?
Last Updated: 15 November 2024
Reversing an array means rearranging its elements so that the first element becomes the last, the second element becomes the second last, an
...read more
STL
cpp-array
C++
cpp-algorithm-library
C++ Programs
CPP Examples
Find Maximum and Minimum Element in a Set in C++ STL
Last Updated: 07 March 2025
In C++, set stores the unique elements in sorted order so it is pretty straightforward to find the minimum and maximum values. In this artic
...read more
STL
C++
C++ Programs
cpp-set
CPP Examples
How to Delete an Element from the Set in C++?
Last Updated: 18 November 2024
In C++, the set container stores unique elements in the sorted order and the deletion operation should not disrupt this sorted order.C++ pro
...read more
STL
C++
C++ Programs
cpp-set
CPP Examples
C++ Program to Make a Simple Calculator
Last Updated: 15 October 2024
A simple calculator is a device used to perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It
...read more
Technical Scripter
CPP-Basics
C++
C++ Programs
CPP Examples
Array sum in C++ STL
Last Updated: 14 February 2025
Array sum can be defined as the sum of all elements of an array. In this article, we will learn how to find the array sum using C++ STL.Exam
...read more
Arrays
STL
cpp-array
C++
C++ Programs
DSA
CPP Examples
Inserting Elements in a Map in C++
Last Updated: 19 November 2024
In C++, map stores unique key value pairs in sorted order and provides fast insert, delete and search operation. In this article, we will le
...read more
STL
C++
C++ Programs
cpp-map
CPP Examples
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
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 !