that all elements of an array should be of similar type.
Arrays can have one of more dimensions—
one-dimensional (1D), two-dimensional (2D), or multidimensional.
A
one-dimensional array uses a
single index and a
two-dimensional array uses two indexes, and so on. A 1D array can be used to
represent a list of data items and is also known as a vector or a list. Similarly, a 2D array can be
used to represent a table of data items consisting of rows and columns. It is also known as a
matrix. A 3D array can be used to represent a collection of tables. The concept can go beyond
Do'stlaringiz bilan baham: |