I'm trying to basically have a user input the amount of test they want averaged, then have the user input the test scores. Send the test scores to a function and have them ordered in ascending then send it to another function that averages it. When I wrote the function I keep getting the address back instead of the actual values, any help would be very appreciated!
Thanks for your input, but the first code you post didn't work even after I tried to tweak it. The other I didn't try because we haven't gotten that far yet.
You're problem starts here:void arrSelectSort( int* [], int); This tells the compiler that the first argument is a pointer to a pointer which is why this only works if you pass 'testScores' (already a pointer) by reference. You are also missing an embedded for loop in your "arrSelectSort()" function, otherwise you're only making one pass and not sorting the array properly.