- When iterating over an array it’s faster to pass a pointer to that array to the
forloop. This prevents the loop from copying the whole array which is beneficial for both CPU and memory usage.
- If we want to modify the array while we’re iterating over it, we need to either give a
forloop a pointer to that array or use the array index operator directly.