xxxxxxxxxx
int balance[5] = {1000, 2, 3, 17, 50};
/* pass pointer to the array as an argument */
avg = getAverage( balance, 5 ) ;
double getAverage(int *arr, int size) {
// do something
for (i = 0; i < size; ++i) {
sum += arr[i]; // access array without dereference
}
// do something
}