March 2018
Intermediate to advanced
183 pages
2h 34m
English
An array is a data structure used for storing a collection of values that all have the same data type.
To declare an array, you start as you would a normal variable declaration, but in addition you append a set of square brackets following the array’s name. The brackets contain the number of elements in the array. The default values for these elements are the same as for variables—elements in global arrays are initialized to their default values and elements in local arrays remain uninitialized.