Ubisoft interview question

when do you use reference and when do you use pointer