Our instructor asked us why its important to be able to replace values in a pointer........Here is what I came up with...
By using a pointer, a block of memory is allocated at runtime, therefore a program can be more flexible than one that allocates all its memory at once(read from a book). Also, a pointer is easy to store rather than a large struct or a class object.A pointer just stores an address that can be easily passed to a function whereas if an object is passed to a function it had to be constructed, copied and destroyed.......making total sense of a pointer. But its giving examples of this that I'm having a mentall block with. Any help will be appreciated thanks, I think that this will totally clear me up on pointers.Smarkles.