> findAverage (double array[], int size, double returnvalue);
You have used this line in main(). This is not how you call a function. This is normally how functions are declared ( as it is done at the top of the program for this function). To call this function, you omit the types, and only use variable names, like this:
findAverage( array[], size, returnvalue);
This would have been a compiler error, I assume.
however, after you fix this, there is another error here. The variable returnvalue, going by its name, seems out of place, or superfluous. A return value is something that is returned by a function, not something we pass it as an argument ( like array, size). So, a better statement would look like this:
int returnvalue = findAverage( array, size);
The function findAverage() would look like this:
int findAverage( int array[], int size) {
// code that calculates average
return average;
}
the "int" before findAverage tells us that it returns an int. And in the main(), we assign the returned value to "int returnvalue".