C Two Dimensional Array

An array, which has two subscripts is known as a two dimensional array. By using two-dimensional arrays, programmers can manipulate data structures. It has two subscripts, the first one represents the row and the second one represents a column. Subscripts are always starts at 0.

Syntax:

Array declaration

Array initialization

Accessing array

An element of a two-dimensional array can be accessed by using it’s subscripts, that is row index and column index of that array.

For example −

An Example showing Two Dimensional arrays:

Output: