Array manipulation Question
Ok so i'm writing a program to sort an array using heap sort. I have my main function that gets the information on what the array is, then using a function to sort it. The function is defined as: void maxheapify(int A[], int i, int len)
So I've figured out that the array doesn't really get modified when I pass the array into the function. But I can't just do A=maxheapify(A, i, len) either because in maxheapify A is an int*... And if I turn the A in main to an int* then I get a whole crap load of errors....
So anyone have any suggestions? I can post my whole code if need be.