Need help understanding basic list code
Hello. Im new on this forum so please go easy. I have an exam coming up soon and Im having trouble understanding the solution to the last answer in the exam. Ive listed both the question and answer below.
How would you declare a list of floating numbers in C? Write a function that calculates the mean value of these numbers, and another function that sorts the list into the list of numbers lower than this mean value and the list of numbers higher than this mean value.
This is pretty advanced for me as I have been learning at a lower level. I would really appreciate it if someone could help me understand the example answer code.
float meanValue(float myList)
while (counter <10)
sum += myList[counter];
void sortMiddle(float myList, float middle, float inferior, float superior)
int counter1=0, counter 2=0, counter 3=0;
if (myList[counter1] <= middle)