Two dimensional array (Matrix):
Set of data items of similar kind stored in contiguous memory
allocations is called a single dimensional array.
Set of single dimensional arrays of same size and type
stored in contiguous memory allocations is called a two dimensional array.
Set of sets of similar kind of data is called a two
dimensional array.
To improve the readability a two dimensional array is also
defined as similar kind of data items stored in a tabular format that is in rows
and columns. So it is also called matrix.
Every element in a matrix is identified with its row index
and column index which always start from 0.
Every element in a matrix is free to participate in
arithmetic, relational and logical operations.
0 comments:
Post a Comment