An array is a collection of variables bound together by a common name and an offset. In nearly every respect, we can treat an individual element of an array just as we would any other variable. Even with function parameters, array elements can be passed into them as with regular variables, as follows:
#include <math.h>
int anArray[10] = {0};
anArray[3] = 5;
anArray[3] = pow( anArray[3] , 2 );
The fourth element of the array is assigned a value of 5. The function declared in math.h, pow(), is called with the value found in the fourth element of the array and is raised to the power of 2 (squared) and assigned back to the fourth element of the array, which now has a value of 25.
We want to create functions that operate on all elements of an array, regardless of their size. But how do we use arrays of unknown sizes as parameters to functions? We can do this; arrays of unknown sizes can be passed as arguments to functions...