Two Dimensional array

Two Dimensional Array :-

         Two dimensional array contains more than one row and columns. These are helpful for representing matrices and perform operations related to matrices. 

Declaring Two Dimensional Array :

type arrayname[rows][columns];

Example:

int a[3][2];

a is a Two Dimensional Array of type integer contains 3 number of rows and 2 number of columns. Hence it can store 6 elements in it.

DIAGRAM OF TWO DIMENSIONAL ARRAY



Comments