Referencing arrays - do I need to use pointers?