How to use pointers in this case?

Printable View