I am implementing a merge sort version in c. For the first step, I need to split the array into subarrays.
Is it wrong to do this if you have two pointers, one points to the beginning of the original array, and the second points to the middle?
Or should I malloc 2 new memory slots, copy the corresponding values ββhere, and then save a pointer to this space?
c arrays pointers malloc
Shane
source share