Wednesday, October 27, 2010

What is an array?

An array is a list of values referred to by a single name. Arrays make it easy to access a list of related values. They can store lists of names, values or objects. Whenever you want to hold a list of values in memory for further processing or display, an array is an appropriate data structure.



Some terminology

Index
An index is a numbered position within the array. An array index begins at zero(0)

UpperBound
The UpperBound is the maximum index in an array.

Element
An element is the value (or object) contained within an index.


Note the difference
While the UpperBound & the Length of an array sound very similar, they are not the same at all.

No comments:

Post a Comment