Overview of 2 Dimensional array
A two-dimensional array is an array of array. For the best view, rotate your screen horizontally. For example, consider a sample time table. Here, the days are an array. Each day consists of an array within them. Thus it forms a 2-D array with 6 columns and 7 rows. The text entered in each box acts as an element. The advantages and disadvantages of a 2-dimensional array are the same as a 1-dimensional array as I mentioned in this blog- 1-D Array Overview . A major application of 2-dimensional array is a representation of matrices. Let us consider an array arr with 2 rows and 3 columns. 8 5 4 2 8 3 Usually, a 2-D array is used for storing information that is visualized as a grid and table form. However, in memory, it is not stored as a table like visualization. It stores by continuous memory either of the following order: 1) Row major order- Here, elements of first rows are list fir...