An array in C is a collection of elements of the same data type, stored in contiguous memory locations, and accessed using a single name with an index.
- They allow you to store multiple values in a single variable, which makes it easier to manage large sets of data.
Why use Arrays?
- To group related data of the same type.
- To avoid declaring multiple variables.
- To allow indexed access to data.
Types of Arrays in C:
C supports primarily two types of arrays:
- Single Dimensional Array (1D Array)
- Multidimensional Array (including Two Dimensional and Three Dimensional Arrays)
