when you assign the arrays to the pointers you dont need the []

the function calls dont need data types on them.

you are returning values without storing them. plus_total = total ; and minus_total = total; cant see the "total" inside your sum() function.

should be:

Code:

minus_total = sum(a,array_amount);
plus_total = sum(a,array_amount) ;

look at the way i pass the pointer and call the function

use semi-colons in the for loop

Code:

int sum(int *a,int array_amount)
{
int b, total = 0;
for (b = 0; b <= array_amount; b++ )
{
total+=a[b];
}
return total;
}

Code:

Enter an integer, negative or positive:
-4
The sum of negative integers is -4.
The sum of positive integers is 0.
0 is a larger number than -4.