Uploaded October 2012 | Updated November 2026, 3 hours ago
Today we'll look at arrays. They're a method of grouping multiple variables of the same data type together in RAM with a single name. We can run through an array with a loop and quickly set millions of values, this would be completely impractical with separate variables.
It's really important to tie the "for" loop to arrays. The two go hand in hand. The most common type of for loop is the one that counts exactly the same as the elements are indexed in an array. It starts at "0" and uses the less than operator.
The final example is compiler specific and only works if optimizations are turned off.
Today we'll look at arrays. They're a method of grouping multiple variables of the same data type together in RAM with a single name. We can run through an array with a loop and quickly set millions of values, this would be completely impractical with separate variables.
It's really important to tie the "for" loop to arrays. The two go hand in hand. The most common type of for loop is the one that counts exactly the same as the elements are indexed in an array. It starts at "0" and uses the less than operator.
The final example is compiler specific and only works if optimizations are turned off.










