for loop and pointers c++

I’ve been messing about with the for loop on c++ and its quite interesting that a copy is created for the for loop rather than editing the existing values of an array. Here is my final code example: