An array is a static data structure that can store multiple values of the same type. These values are stored using contiguous memory locations with the same name. The values in the array are known as elements. Arrays can be used to store and manipulate a large number of values of the same type. This mechanism provides the ability to handle large number of values in a single collection and to refer to each value with an index. An integer value or variable known as index is used to access a particular element of the array. The values of the index start from zero and it represents the relative position of the element in the array. Figure 11.1 shows an array with 10 elements.
KeywordsBinary Search Class Point Linear Search Return Type Type Float
Unable to display preview. Download preview PDF.