Sorry if this is a stupid question, but I am pretty new to programming. I've been studying sorts, and merge sort has been giving me a headache.
void part(int arr[],int min,int max)
{
int mid;
if(min<max)
{
mid=(min+max)/2;
part(arr,min,mid);
part(arr,mid+1,max);
merge(arr,min,mid,max);
}
}
I dont understand how you can use the function part in its own definition when it's not even defined fully yet. Also, I dont really quite understand how this is working.. Please help me understand this!!
Any help greatly appreciated. Thank you.