The two dimensional array in C language is represented in the form of rows and columns, also known as matrix. It is also known as array of arrays or list of arrays.
The two dimensional, three dimensional or other dimensional arrays are also known as multidimensional arrays.
Declaration of two dimensional Array in C
We can declare an array in the c language in the following way.
A simple example to declare two dimensional array is given below.
Here, 4 is the row number and 3 is the column number.
Initialization of 2D Array in C
A way to initialize the two dimensional array at the time of declaration is given below.
Two dimensional array example in C