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
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
C++
4.2k+ articles
C Language
2.1k+ articles
C Programs
690+ articles
cpp-array
160+ 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
Popular Articles
Recent 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 co
...read more
c-array
C Language
C-Pointers
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 know
...read more
c-array
C Language
C-Arrays
C-Dynamic Memory Allocation
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
...read more
c-array
C Language
C-Arrays
C Programs
Picked
C Examples
Similar Topics
C++
4.2k+ articles
C Language
2.1k+ articles
C Programs
690+ articles
cpp-array
160+ 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
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 el
...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
...read more
c-array
C Language
C-Arrays
C Programs
Picked
C Array Programs
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 seve
...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
...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 ar
...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 insid
...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 c
...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 co
...read more
c-array
C Language
C-Arrays
C Programs
Picked
C Examples
How to Iterate Through Array of Structs in C?
Last Updated: 01 March 2024
In C, while working with an array of structs we have to iterate through each struct in an array to perform certain operations or access its
...read more
c-array
C Language
C-Arrays
C-Structure & Union
C Programs
Picked
C Examples
How to Create a Dynamic Array of Structs?
Last Updated: 01 March 2024
In C, we have dynamic arrays in which we can allocate an array of elements whose size is determined during runtime. In this article, we will
...read more
c-array
C Language
C-Structure & Union
C-Dynamic Memory Allocation
C Programs
Picked
C Examples
How to Initialize a 2D Array in C?
Last Updated: 12 September 2024
In C, a 2D Array is a type of multidimensional array in which data is stored in tabular form (rows and columns). It has two dimensions so it
...read more
c-array
C Language
C-Arrays
C Programs
Picked
C Examples
A shorthand array notation in C for repeated values
Last Updated: 18 September 2017
In C, when there are many repeated values, we can use a shorthand array notation to define array. Below program demonstrates same.[sourcecod
...read more
Misc
c-array
C Language
First
1
2
3
>>
Last
First
1
2
3
>>
Last
First
1
2
3
>>
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 !