What are the pros and cons of each, which is done under what circumstances? Returning a reference or a pointer appears quite similar, I don't know which should really be done.
Asked
Active
Viewed 55 times
0
-
2First related link on the right. – chris May 16 '13 at 23:03
-
1http://stackoverflow.com/questions/57483/what-are-the-differences-between-pointer-variable-and-reference-variable-in-c?rq=1 – David G May 16 '13 at 23:04