Skip to content
geeksforgeeks
  • 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
Similar Topics
DSA
22.4k+ articles
Arrays
6.4k+ articles
C++
4.1k+ articles
C++ Programs
2.4k+ articles
C Language
1.9k+ 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
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
image
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
image
cpp-array
C++
Similar Topics
DSA
22.4k+ articles
Arrays
6.4k+ articles
C++
4.1k+ articles
C++ Programs
2.4k+ articles
C Language
1.9k+ 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: 07 May 2025
A multi-dimensional array in C can be defined as an array that has more than one dimension. Having more than one dimension means that it can...read more
image
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
image
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
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
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
Lightbox