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
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++ Progr
...read more
c-array
cpp-array
C Language
C++
C Programs
C++ Programs
C++ Array Programs
C Array Programs
C++ Arrays
Last Updated: 25 April 2025
In C++, an array is a derived data type that is used to store multiple values of similar data types in a contiguous memory location. Each el
...read more
cpp-array
C++
Picked
How to Insert an element at a specific position in an Array in C++
Last Updated: 21 June 2022
An array is a collection of items stored at contiguous memory locations. In this article, we will see how to insert an element in an array i
...read more
cpp-array
C++
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
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 Find the Maximum Element of an Array using STL in C++?
Last Updated: 04 November 2024
Given an array of n elements, the task is to find the maximum element using STL in C++.ExamplesInput: arr[] = {11, 13, 21, 45, 8}Output: 45E
...read more
STL
cpp-array
C++
C++ Programs
CPP Examples
Multidimensional Arrays in C - 2D and 3D Arrays
Last Updated: 10 January 2025
Prerequisite: Arrays in CA multi-dimensional array can be defined as an array that has more than one dimension. Having more than one dimensi
...read more
c-array
cpp-array
C Language
C++
C-Arrays
How to Return a Local Array From a C++ Function?
Last Updated: 14 December 2022
Here, we will build a C++ program to return a local array from a function. And will come across the right way of returning an array from a f
...read more
cpp-array
CPP-Functions
C++
Array of Strings in C++
Last Updated: 26 February 2025
In C++, a string is sequence of characters that is used to store textual information. Internally, it is implemented as a dynamic array of ch
...read more
cpp-string
cpp-array
cpp-vector
C++
CPP Array and String
Array class in C++
Last Updated: 08 February 2023
The introduction of array class from C++11 has offered a better alternative for C-style arrays. The advantages of array class over C-style a
...read more
Arrays
STL
CPP-Library
cpp-array
C Language
C++
DSA
How to Find Size of an Array in C++ Without Using sizeof() Operator?
Last Updated: 11 October 2024
In C++, generally, we use the sizeof() operator to find the size of arrays. But there are also some other ways using which we can find the s
...read more
cpp-operator
cpp-array
cpp-sizeof
C++
Variable Length Arrays (VLAs) in C
Last Updated: 10 January 2025
In C, variable length arrays (VLAs) are also known as runtime-sized or variable-sized arrays. The size of such arrays is defined at run-time
...read more
cpp-array
C Language
C++
C Array and String
Pass Array to Functions in C
Last Updated: 07 March 2025
Passing an array to a function allows the function to directly access and modify the original array. In this article, we will learn how to p
...read more
cpp-array
cpp-pointer
CPP-Functions
C Language
C++
school-programming
CBSE - Class 11
How to pass a 2D array as a parameter in C?
Last Updated: 04 March 2025
A 2D array is essentially an array of arrays, where each element of the main array holds another array. In this article, we will see how to
...read more
cpp-parameter-passing
cpp-array
cpp-pointer
C Language
C Array and String
How to dynamically allocate a 2D array in C?
Last Updated: 10 January 2025
Following are different ways to create a 2D array on the heap (or dynamically allocate a 2D array).In the following examples, we have consid
...read more
cpp-array
cpp-pointer
C Language
C Array and String
Difference between Arrays and Pointers
Last Updated: 07 August 2023
The array and pointers are derived data types that have lots of differences and similarities. In some cases, we can even use pointers in pla
...read more
cpp-array
cpp-pointer
C Language
C Array and String
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
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 !