Types of Arrays in C
Arrays in C are classified by their number of dimensions — how many indices are needed to access an element.1. One-Dimensional Array (1D)
The simplest array — stores elements in a single row. One index is enough to access any element. Syntax:2. Two-Dimensional Array (2D)
Stores elements in rows and columns — like a matrix or table. Two indices are needed:[row][column].
Syntax:
matrix[2][3]: