Two dimensional array can be defined array of arrays. Two dimensional array are organized which can be represented as the collection of columns and rows. 2D array are created to implement a relational database like data structure. 2-D array are provides ease of holding the bulk of data at once.
Declaration of two dimensional array
To declare the 2D array is given below
here, 2 is the number of rows and 3 is the number of columns.
Let’s see the example of 2D array in C language
printf("arr[%d] [%d] = %d \n",i,j,arr[i][j]);