int
int sumOf(int *a, int n) { ... }
to sum the elements of array a[] containing n values.
a[]
n
Implement it two ways: