Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.6K+ articles
Python
19.6K+ articles
C++
3.8K+ articles
C++ Programs
1.5K+ articles
Arrays
264+ articles
cpp-array
174+ articles
c-array
35+ articles
C Array Programs
28+ articles
Converted Page to Post
+ articles
C++ Array Programs
28 posts
Recent Articles
How to Represent the Deck of Cards Using Array in C++?
Last Updated: 06 June 2024
A deck of cards is a collection of 52 playing cards in which each card is uniquely identified by its suit and rank, there are four suits: heart, diamond, club and spade ea...
read more
C++ Programs
C++
Picked
cpp-array
C++ Array Programs
CPP Examples
How to Add an Element at the Beginning of an Array in C++?
Last Updated: 23 July 2025
In C++, arrays are static data structures with a fixed size, hence directly adding new elements at the front or middle is not supported in C++ like any other dynamic data ...
read more
C++ Programs
C++
Picked
cpp-array
C++ Array Programs
CPP Examples
How to Create Array of Arrays in C++
Last Updated: 23 July 2025
Arrays are basic C++ data structures that allow users to store the same data type in memory sequentially. To manage more complicated data structures, you may sometimes nee...
read more
C++ Programs
C++
Picked
Arrays
C++ Array Programs
CPP Examples
How to Dynamically Allocate an Array in C++?
Last Updated: 23 July 2025
In C++, dynamic memory allocation allows us to allocate memory during runtime. Dynamic allocation in an array is particularly useful when the size of an array is not known...
read more
C++ Programs
C++
Picked
cpp-array
C++-new and delete
C++ Array Programs
CPP Examples
How to Print an Array in C++?
Last Updated: 12 May 2024
In C++, an array is a fixed-size linear data structure that stores a collection of elements of the same type in contiguous memory locations. In this article, we will learn...
read more
C++ Programs
C++
Picked
cpp-array
C++ Array Programs
CPP Examples
C++ Program to Find Index of First Occurrence of a Value in Array
Last Updated: 23 July 2025
In C++, an array is a data structure that stores elements of the same type in contiguous memory locations. In this article, we will learn how to find the index of the firs...
read more
C++ Programs
C++
Picked
cpp-array
C++ Array Programs
CPP Examples
How to Find the Range of Values in a 2D Array in C++?
Last Updated: 23 July 2025
In C++, 2D arrays are also known as a matrix, and the range of numbers in a 2D array means the maximum and the minimum value in which the numbers lie in the given 2D array...
read more
C++ Programs
C++
Picked
cpp-array
C++ Array Programs
CPP Examples
How to Initialize a Dynamic Array in C++?
Last Updated: 31 January 2024
In C++, dynamic arrays allow users to allocate memory dynamically. They are useful when the size of the array is not known at compile time. In this article, we will look a...
read more
C++ Programs
C++
Picked
cpp-array
Dynamic Memory Allocation
C++-new and delete
C++ Array Programs
CPP Examples
Array C/C++ Programs
Last Updated: 23 July 2025
C Program to find sum of elements in a given arrayC program to find largest element in an arrayC program to multiply two matricesC/C++ Program for Given an array A[] and a...
read more
C++
c-array
cpp-array
C++ Array Programs
C Array Programs
How to Take Input in Array in C++?
Last Updated: 23 July 2025
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 multiple elements of a particu...
read more
C++
cpp-array
C++ Array Programs
C++ Program to Merge Two Sorted Arrays
Last Updated: 20 August 2026
Given two sorted arrays, the task is to merge them into a single array while maintaining the sorted order.The merged array contains all elements from both arrays, includin...
read more
C++
C++ Array Programs
C++ Program to Copy the Contents of One Array Into Another in the Reverse Order
Last Updated: 21 August 2026
Copying an array in reverse order means storing its elements in a second array from the last element to the first.This approach preserves the original array while creating...
read more
C++ Programs
C++
C++ Array Programs
C++ Program For Finding Subarray With Given Sum - Set 1 (Nonnegative Numbers)
Last Updated: 23 July 2025
Given an unsorted array of non-negative integers, find a continuous subarray that adds to a given number. Examples : Input: arr[] = {1, 4, 20, 3, 10, 5}, sum = 33Output: S...
read more
C++
C++ Array Programs
C++ Program For Addition of Two Matrices
Last Updated: 20 August 2026
Given two matrices of the same dimensions, the task is to find their sum by adding the corresponding elements of both matrices. Matrix addition is performed only when both...
read more
C++
Arrays
C++ Array Programs
C++ Program to Find the Minimum and Maximum Element of an Array
Last Updated: 20 August 2026
Given an array of integers, the task is to find its minimum and maximum elements.The minimum element is the smallest value in the array.The maximum element is the largest ...
read more
C++
C++ Array Programs
1
2
×
Advertisement