An array is a collection of objects, all of the same type. An array can be envisioned as a series of data storage locations; each storage location is called an element of the array.
You declare an array by writing the type, followed by the array name, a left brace, the subscript, and a right brace. The subscript is the number of elements in the array surrounded by square brackets. For example,
declares an array of 25 long integers, named LongArray. When the compiler sees this declaration, it sets aside enough ...