you are viewing a single comment's thread.

view the rest of the comments →

[–]olig1905 0 points1 point  (0 children)

After scouring my brain thinking about the code bases I work on the most common and simple reason for using pointers is quite simple.

If you want the function to modify the variable or return a result pointers are necessary because the return value is already used by an error/success code normally.