void stradd(char *s1, char *s2);
Which of the following overload stradd?
int average(int array[], int size); { int total=0; //set total to 0 for (int j=0; j<size; j++) //for every array member, total+=array[j]; //add it to total return total/size; //average (as integer) }Overload the function so that it averages arrays of type long.
long average(long array[], int size); { long total=0; //set total to 0 for (int j=0; j<size; j++) //for every array member, total+=array[j]; //add it to total return total/size; //average (as long) }
|
|
|