Pointers

Pointers store memory adresses. You can either reference the address iself or the object that is residing at the address.

Their benefit is that in case of larger data structures it’s faster to change the pointer than to move the data itself.

Privacy & Terms