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
32.8K+ articles
DSA
20.1K+ articles
Misc
8.2K+ articles
Mathematical
7.5K+ articles
Competitive Programming
3.0K+ articles
Greedy
2.0K+ articles
Sorting
1.6K+ articles
Searching
1.5K+ articles
Hash
1.2K+ articles
subarray
658+ articles
C-Arrays
51 posts
Recent Articles
Popular Articles
How to Pass an Array into a Lambda Function in C++?
Last Updated: 06 March 2024
In C++, a lambda function, also known as a lambda expression, is a way of defining an anonymous function object right at the location where it is invoked or passed as an a...
read more
C++ Programs
C++
Picked
CPP-Functions
C-Arrays
CPP Examples
Array of Pointers to Strings in C
Last Updated: 04 April 2024
In C, arrays are data structures that store data in contiguous memory locations. Pointers are variables that store the address of data variables. We can use an array of po...
read more
C Programs
C Language
Picked
C-Pointers
C-Arrays
C-String
C Examples
How to Create an Array of Structs in C?
Last Updated: 11 March 2024
In C, a structure is a user-defined data type that can be used to group items of different types into a single entity while an array is a collection of similar data elemen...
read more
C Programs
C Language
Picked
c-array
C-Arrays
C Examples
How to Add an Element to an Array of Structs in C?
Last Updated: 18 March 2024
In C, a struct is a user-defined data type that allows the users to group related data in a single object. An array of structs allows to store multiple structs in contiguo...
read more
C Programs
C Language
Picked
C-Arrays
Arrays
C-Structure & Union
C Examples
How to Create a Dynamic Array Inside a Structure?
Last Updated: 19 March 2024
In C, the structure can store the array data types as one of its members. In this article, we will learn how to create a dynamic array inside a structure in C.Creating a D...
read more
C Programs
C Language
Picked
c-array
C-Arrays
C-Structure & Union
Difference Between Stack-Allocated and Heap-Allocated Arrays
Last Updated: 03 April 2024
In C/C++, arrays can be allocated in two areas of memory: the stack and the heap. Each has its own characteristics and use cases. In this article, we will see the key diff...
read more
C++ Programs
C++
Picked
c-array
cpp-array
C-Arrays
C-Dynamic Memory Allocation
CPP Examples
Find the Length of Character Array in C
Last Updated: 23 April 2024
In C, a character array is a collection of elements of the ‘char’ data type that are placed in contiguous memory locations and are often used to store strings. The length ...
read more
C Programs
C Language
c-array
C-Arrays
C Examples
How to Create a Dynamic Array of Strings in C?
Last Updated: 22 April 2024
In C, dynamic arrays are essential for handling data structures whose size changes dynamically during the program's runtime. Strings are arrays of characters terminated by...
read more
C Programs
C Language
Picked
C-Arrays
C-Dynamic Memory Allocation
C Strings Programs
C Examples
How to Initialize a Dynamic Array in C?
Last Updated: 27 June 2024
In C, dynamic memory allocation is done to allocate memory during runtime. This is particularly useful when the size of an array is not known at compile time and needs to ...
read more
C Programs
C Language
Picked
c-array
C-Arrays
C-Dynamic Memory Allocation
C Examples
How to Find the Mode of Numbers in an Array in C?
Last Updated: 19 June 2024
In C, the mode of array numbers is the element that appears most frequently in the array. To find the mode, we can count the occurrences of each element and identify the o...
read more
C Programs
C Language
Picked
c-array
C-Arrays
C Array Programs
C Examples
How to Pass a 3D Array to a Function in C?
Last Updated: 24 June 2024
A 3D array (or three-dimensional array) in C is a multi-dimensional array that contains multiple layers of two-dimensional arrays stacked on top of each other. It stores e...
read more
C Programs
C Language
Picked
c-array
C-Arrays
C Examples
How to Find the Range of Numbers in an Array in C?
Last Updated: 20 June 2024
The range of numbers within an array is defined as the difference between the maximum and the minimum element present in the array. In this article, we will learn how we c...
read more
C Programs
C Language
Picked
c-array
C-Arrays
C Examples
Return an Array in C
Last Updated: 28 June 2024
In C, arrays are linear data structures that allow users to store the same data in consecutive memory locations. Returning an array in C can be a little complex because un...
read more
C Programs
C Language
Picked
c-array
C-Arrays
C Examples
C Program to Traverse a Multi-Dimensional Array
Last Updated: 26 August 2024
Write a C program to traverse a given multi-dimensional array that contains N elements.ExamplesInput: arr[2][3] = {{1, 2, 3}, {4, 5, 6}}Output: 1 2 3 4 5 6Inp...
read more
C Programs
C Language
C-Arrays
C Basic Programs
C Program to Traverse an Array in Reverse
Last Updated: 26 August 2024
Write a C program to traverse a given array in reverse order that contains N elements.ExamplesInput: arr[] = {2, -1, 5, 6, 0, -3}Output: -3 0 6 5 -1 2Input: arr[] = {4, 0,...
read more
C Language
C-Arrays
C Basic Programs
1
2
3
4
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 !