Objects reside in memory. And so far, we have learned how to access and manipulate objects through
variables. Another way to access an object in memory is through
pointers. Each object in memory occupies a certain amount of bytes and has a type and an address. This allows us to access the object through a pointer. So, pointers are types that can hold the address of a particular object. For illustrative purposes only, we will declare an unutilized pointer that can point to an
int object:
We say ...