Courses
Tutorials
Practice
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
C++
4.3K+ articles
C Language
2.1K+ articles
C Programs
700+ articles
cpp-array
173+ articles
C Examples
95+ articles
C-Pointers
74+ articles
C-Arrays
65+ articles
C-Structure & Union
53+ articles
C-Dynamic Memory Allocation
34+ articles
C Array Programs
28+ articles
c-array
34 posts
Recent Articles
Popular Articles
Relationship Between Pointer and Array in C
Last Updated: 03 December 2024
In C programming language, pointers and arrays are closely related. An array name acts like a pointer constant. The value of this pointer constant is the address of the fi...
read more
c-array
C Language
C-Pointers
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-array
C Language
C-Arrays
C Programs
Picked
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-array
C Language
C-Arrays
C-Dynamic Memory Allocation
C Programs
Picked
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-array
C Language
C-Arrays
C Programs
Picked
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-array
C Language
C-Arrays
C Programs
Picked
C Examples
How to Find Median of Numbers in an Array in C?
Last Updated: 25 November 2024
For an odd number of elements in an array, the median is the middle element, and for an even number, it’s the average of the two middle elements. In this article, we will ...
read more
c-array
C Language
C Programs
Picked
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-array
C Language
C-Arrays
C Programs
Picked
C Array Programs
C Examples
How to Find the Mode of Numbers in a Sorted Array in C?
Last Updated: 18 June 2024
The mode of the given numbers can be defined as the value that occurs the most in the given dataset or the value with the highest frequency. In this article, we will learn...
read more
c-array
C Language
C Programs
Picked
C Examples
Is an Array Name a Pointer?
Last Updated: 18 June 2024
In C, arrays and pointers are closely related and are often considered same by many people but this a common misconception. Array names are not a pointer. It is actually a...
read more
c-array
C Language
C-Pointers
Picked
C Examples
How to Initialize Array to 0 in C?
Last Updated: 17 June 2024
Initializing an array to zero is a common practice in programming to ensure that all elements start with a known value. In C, there are several ways to initialize an array...
read more
c-array
C Language
C Programs
Picked
C 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-array
C Language
C-Arrays
C Programs
C Examples
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-array
cpp-array
C++
C-Arrays
C-Dynamic Memory Allocation
C++ Programs
Picked
CPP 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-array
C Language
C-Arrays
C-Structure & Union
C Programs
Picked
How to Convert a String to a Char Array in C?
Last Updated: 05 December 2024
In C, the only difference between the string and a character array is possibly the null character '\0' but strings can also be declared as character pointer in which case,...
read more
c-array
C Language
C-String
C Programs
Picked
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-array
C Language
C-Arrays
C Programs
Picked
C Examples
1
2
3
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 !