I'm having trouble passing an array to a function. Arrays are passed "call by value" which means the array elements are not copied when I pass them.(Just a pointer being passed)
As my called function changes the array for its purpose the original array from the calling function is being changed.
Is there any way round this without copying the passed array in the called function to a temporary array (its rather large!)