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
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
cpp-vector
360+ articles
cpp-string
140+ articles
cpp-pointer
93 articles
cpp-array
160+ posts
Popular Articles
Recent Articles
How to Sort an Array in C++?
Last Updated: 10 October 2024
Sorting an array involves rearranging its elements in a specific order such as from smallest to largest element or from largest to smallest
...read more
cpp-array
C++
C++ Programs
Picked
CPP Examples
How to Take Input in Array in C++?
Last Updated: 05 October 2023
Arrays in C++ are derived data types that can contain multiple elements of the same data type. They are generally used when we want to store
...read more
cpp-array
C++
C++ Array Programs
C++ Multidimensional Array
Last Updated: 06 March 2025
A multidimensional array is an array with more than one dimension. It means that it can grow in different directions i.e. instead of changin
...read more
Arrays
cpp-array
C++
Picked
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
cpp-vector
360+ articles
cpp-string
140+ articles
cpp-pointer
93+ articles
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 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
How to Sort an Array in Descending Order using STL in C++?
Last Updated: 23 October 2024
Sort an array in descending order means arranging the elements in such a way that the largest element at first place, second largest at seco
...read more
STL
cpp-array
C++
C++ Programs
Advantages of Vector Over Array in C++
Last Updated: 13 December 2024
In C++, both vectors and arrays are used to store collections of elements, but vector offers significant advantages over arrays in terms of
...read more
Arrays
cpp-array
cpp-vector
Data Structures
Difference Between
DSA
STD::array in C++
Last Updated: 09 June 2022
The array is a collection of homogeneous objects and this array container is defined for constant size arrays or (static size). This contain
...read more
STL
cpp-array
C++
array::size() in C++ STL
Last Updated: 30 October 2024
The array::size() method is used to find the number of elements in the array container. It is the member method std::array class defined ins
...read more
STL
cpp-array
C++
cpp-containers-library
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
Accessing array out of bounds in C/C++
Last Updated: 20 January 2025
Prerequisite: Arrays in C/C++In high level languages such as Java, there are functions which prevent you from accessing array out of bound b
...read more
Technical Scripter
c-array
cpp-array
C Language
C++
Array algorithms in C++ STL (all_of, any_of, none_of, copy_n and iota)
Last Updated: 25 October 2022
From C++11 onwards, some new and interesting algorithms are added in STL of C++. These algorithms operate on an array and are useful in savi
...read more
Competitive Programming
STL
CPP-Library
cpp-array
C Language
C++
cpp-algorithm-library
DSA
What is Array Decay in C++? How can it be prevented?
Last Updated: 08 May 2024
What is Array Decay?The loss of type and dimensions of an array is known as decay of an array. This generally occurs when we pass the array
...read more
cpp-parameter-passing
cpp-array
cpp-pointer
C Language
C++
How to print size of array parameter in C++?
Last Updated: 26 December 2023
How to compute the size of an array CPP?[tabby title="C++"][sourcecode language="cpp"]// A C++ program to show that it is wrong to // compu
...read more
cpp-parameter-passing
cpp-array
cpp-pointer
C Language
C++
Pointer vs Array in C
Last Updated: 21 April 2025
Most of the time, pointer and array accesses can be treated as acting the same, the major exceptions being: 1. the sizeof operatorsizeof(
...read more
cpp-array
cpp-pointer
C Language
C-Pointers
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 !