Original Post
I've been reading up on pointers and references and finally realized passing by a pointer changes the value of the original variable (like passing a pointer of an int of 5 to a function that adds 3 but returns void). Now trying to understand this in game programming maybe I'm not seeing it right. Many functions I've seen accept some type of pointer, is this because it's easier to change the actual value rather than return a number and set that number equal to the original variable? Also I've heard pointers are a big 'no-no' in game programming but I've seen them in many programs. (Maybe I'm noticing them in the wrong context) Is this true?