Assume I have an array a
and an array b.
Both have the same type and size but different values.
Now I create 3 or so pointers that point to different elements in a, you could say a[ 0 ]
, a[ 4 ]
and a[ 13 ]
.
Now if I overwrite a
with b
via a=b
- Where will the pointers point?
- Do the pointers still point to their original positions in
a
but the values they point to are now those ofb
?