Array: Difference between revisions

21 bytes added ,  16 years ago
m
no edit summary
mNo edit summary
mNo edit summary
Line 1:
[[Category:Encyclopedia]]An '''array''' is a composite data type, in the [[Collections|collection]] category, that stores multiple values all of the same declared type. The stored values are called '''elements''' and are accessed by a tuple of indices. By using a variable indices, the array may be accessed for a not predetermined set of indices, during the run of the program. All indices of an array are [http://en.wikipedia.org/wiki/Total_order totally ordered].
 
An array of which some of the indices have infinite (or else very large) [http://en.wikipedia.org/wiki/Upper_and_lower_bounds bounded subsets] is known as an [[associative array]]. For example, arrays indexed by [http://en.wikipedia.org/wiki/Lexicographical_order lexicographically ordered] strings are associative.
 
Arrays with more than one index are called '''multidimensional''' arrays. For example, matrix is a two-dimensional array.