I will show you the relevant lines:
float Gpa(char grades[], char hours[], int arrLength)
char grades[6];
int classTime[5];
Gpa(grades, classTime, 5)
Did you see it now?
The
Gpa
function expects three parameters of type
char[]
,
char[]
, and
int
. But you are passing
char[]
,
int[]
, and
int
.
The compiler should recognize this too and throw out a warning or error. If you did not got such compiler message, increase the warning level of the compiler (e.g. by using -Wall with GCC and /Wall with MS compilers).
To solve this change your
Gpa
function to
float Gpa(char grades[], int hours[], int arrLength)