mardi 13 avril 2021

Does the swapping an array of object around affects the pointers that pointing at it

When swapping or moving an array of objects , what happens if lets say there were pointers pointing to randomn objects in the array. Does the pointer follow the objects element as they move or not? If they don't, is there a way to make them do so?

Aucun commentaire:

Enregistrer un commentaire