A pointer to the list would allow you to modify whatever's at that pointer's address though. If you want to look at the list and not edit it you pass by const reference 99% of the time (or you pass a copy) and if your language doesn't have that I don't like it.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: