Class 6: Arrays
In class 4, we used Vectors as the primary container for data. In this class, we'll take a look at a more primitive/pure container known as an Array. Arrays are more low-level than Vectors in that you get nothing for free; hence, arrays are more difficult to learn and manage. Despite the shortcomings of arrays, they are extremely valuable for complete control of your container's memory requirements. In addition, arrays are more widely supported across other programming languages.
Topics to discuss:
Declaring and Referencing Arrays
Arrays in Memory (RAM)
Contiguous vs. Fragmented Memory
In-place Initialization
Indexed Variables as Arguments
Pass by Value vs. Pass by Reference
Arrays as Arguments
Const Array Parameters
Array Return Values
Partially Filled Arrays
Array Maxima and Minima
Topics to discuss:
Declaring and Referencing Arrays
Arrays in Memory (RAM)
Contiguous vs. Fragmented Memory
In-place Initialization
Indexed Variables as Arguments
Pass by Value vs. Pass by Reference
Arrays as Arguments
Const Array Parameters
Array Return Values
Partially Filled Arrays
Array Maxima and Minima