Here's my main
int main () {
int list1[3] = {5,5,6};
int num = 3;
int result;
int *arr = list1;
int maxVar;
int *maxVarHolder;
maxVarHolder = &maxVar;
result = sumarr(*arr, num, *maxVarHolder);
return 0;
}
Here's the function header:
int sumarr (int *arr, int size, int *max)