Next: Strings
Up: Data Structures
Back: Variables
-
An array is a variable that can store one or more values of the same
type
-
To declare an array you must specify a type, array name, and the
number of values the array is to store
-
The first array element is stored at the 0 element
(array[0]); the last array element is indexed by a value
one less than the array size
-
When a function receives an array as a parameter, the function must
specify the array type and name, but not the array size