January 2018
Intermediate to advanced
115 pages
1h 37m
English
An array is a data structure used for storing a collection of values of a single type.
To declare an array, a set of square brackets is appended to the data type the array will contain, followed by the array’s name. Arrays can be declared with any data type, and all of its elements must then be of that type:
Alternatively, the brackets may be placed after the array name. However, this form is discouraged. The brackets affect the type and should therefore appear next to the type:
The array is allocated with the ...