...When you pass an array to a function, and change its value you are changing the original content and not its copy.
I was unaware of this. I was under the impression that you should treat it as you would any other variable and pass either a pointer or a reference to alter it's value within a function. Thank you for clarifying.
-D
Reputation Points: 55
Solved Threads: 7
Junior Poster in Training
Offline 76 posts
since Aug 2009