Ah, I hadn't noticed that. Sorry, when I skimmed the code the first time I subconsciously mistook this
Originally Posted by LightYear
for a scanf request to set N. Pretty stupid of me, sorry again.
printf("Enter %d grades: ", N);
In this case, you don't need to use malloc or a parameter to findHighest(). #defines are global, you can refer to them directly everywhere. So:
should be the prototype, and you can use N inside that function.
float findHighest(float grades[N]);
That's why I had all that stuff about getting a value from the user...I have to pay better attention...