Well I guess I fixed it myself.
#include <stdio.h>
#define MAXSTUDENTS 25
int input(int *numgrades[]);
float average(int *numgrades[], int num_grades);
int main(void) {
float mean = 0.0;
int numgrades[MAXSTUDENTS] = {0};
int grades_entered = 0;
grades_entered = input(numgrades);
mean...
Ok, so im working on a little program that I need to prompt the user to input integers, which are stored in an array. The data in the array is then passed into another function which adds all the array location together, and divides it by the number of numbers entered to give an average of the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.