1

If you array is declared with 65536 buckets, then aux_list[65536] is outside the bounds (remembering that arrays are zero-indexed). So what happens in your loop when i == 65536?


1

One problem I see with your sort function is that you've made a third array (sortedArray[]) and filled it with sorted numbers from values[], but then you didn't do anything else with it. Your function doesn't return it (not that you can return an array in C anyway, afaik). This sort function is not supposed to return anything, hence return type void. ...


Only top voted, non community-wiki answers of a minimum length are eligible