exercises/ex02/adderinclass.c
int add_array(int array[], int n) {
    int i;
    int total = 0;

    for (i=0; i<n; i++) {
        total += array[i];
    }
    return total;
}
/* add_array: Adds up the elements of an array.
*
*  array: int pointer
*  n: number of elements in the array
*
*  returns: total
*/
Adds up the elements of an array.
array: int pointer
n: number of elements in the array

total
Adds up the elements of an array . array : int pointer n : number of elements in the array total
int add_array(int array[], int n) {
    int i;
    int total = 0;
    for (i=0; i<n; i++) {
        total += array[i];
    }
    return total;
}
int add_array ( int array [ ] , int n ) { int i ; int total = 0 ; for ( i = 0 ; i < n ; i ++ ) { total += array [ i ] ; } return total ; }
add_array: Adds up the elements of an array.
add_array : Adds up the elements of an array .