This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Function argument getting modified by function

I am passing an array to a function to sort it and return the median value. I do not want the global array to be sorted. I only want the array to be sorted within the function. I thought that when a variable was passed to a function, a copy was made for the function. Apparently I am wrong about this???

Thanks, Carroll.