Description
Types of array : single dimension, double dimension and multidimension
Presentation Transcript
Types Of Array : Types Of Array Arrays are classified according to the manner in which data are stored. When data are stored in consecutive memory cells, either in a single row or in single columns then such type of array is called single dimension or single subscripted array When data is stored in rows and columns i.e. in matrix form then it is called double dimension array or double subscripted array .
Multi Dimensional Array :
We may have arrays with more than two dimensions. A three dimension array data are stored 3D form, a four dimension in 4D form etc. A three dimensional array may be declared as A[3][2][4]. A three dimensional array requires three subscripts to specify an element of this array, such as a[i][j][k]. The first subscript ‘i’ specify a plane number , the second subscript ‘j’ a row number and the third subscript specifies a column number.
For example
An array of ‘place’ may be specified by the country, state and city, similarly an array of student may be specified by his school, class and section or by the college name, branch and the year, and an array of temperature may be specified by “longitude”, “latitude” and “altitude”.
Your Facebook Friends on WizIQ