Tutorials
Courses
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
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
C++
4.3K+ articles
C++ Programs
2.4K+ articles
Sorting
1.8K+ articles
Computer Science Fundamentals
1.5K+ articles
Matrix
1.3K+ articles
cpp-array
174+ articles
C++ Array Programs
28 posts
Recent Articles
Popular Articles
C++ Program For Finding Subarray With Given Sum - Set 1 (Nonnegative Numbers)
Last Updated: 26 December 2022
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++ Programs
C++
DSA
Arrays
C++ Array Programs
C++ Program For Addition of Two Matrices
Last Updated: 04 July 2024
Given two N x M matrices. Find a N x M matrix as the sum of given matrices each value at the sum of values of corresponding elements of the given two matrices. In this art...
read more
Matrix
C++ Programs
C++
DSA
Arrays
Arrays
C++ Array Programs
C++ Program to Find the Minimum and Maximum Element of an Array
Last Updated: 17 January 2023
Given an array, write functions to find the minimum and maximum elements in it. Example:C++ // C++ program to find minimum (or maximum) element// in an array.#i...
read more
Searching
Recursion
C++ Programs
C++
DSA
Arrays
C++ Array Programs
C++ Program to Merge Two Sorted Arrays
Last Updated: 23 August 2024
Given two sorted arrays, the task is to merge them in a sorted manner.Examples: Input: arr1[] = { 1, 3, 4, 5}, arr2[] = {2, 4, 6, 8} Output: arr3[] = {1, 2, 3, 4, 4, 5, 6,...
read more
Sorting
Mathematical
C++ Programs
C++
DSA
Arrays
C++ Array Programs
C++ Program to Copy the Contents of One Array Into Another in the Reverse Order
Last Updated: 17 January 2023
Given an array, the task is to copy these array elements into another array in reverse array.Examples:Input: array: 1 2 3 4 5 Output: 5 4 3 2 1 Input: array: 10 20 30 40 5...
read more
C++ Programs
C++
C++ Array Programs
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 multiple elements of a particu...
read more
C++
cpp-array
C++ Array Programs
Array C/C++ Programs
Last Updated: 22 May 2024
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 Programs
C++ Programs
C Language
C++
c-array
cpp-array
C++ Array Programs
C Array Programs
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
How to Find the Range of Values in a 2D Array in C++?
Last Updated: 28 February 2024
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
C++ Program to Find Index of First Occurrence of a Value in Array
Last Updated: 11 March 2024
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 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
How to Dynamically Allocate an Array in C++?
Last Updated: 21 May 2024
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 Create Array of Arrays in C++
Last Updated: 12 May 2024
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 Add an Element at the Beginning of an Array in C++?
Last Updated: 16 May 2024
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 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
1
2
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 !