You can pass an array to a function like so:
Code:
void takes_array(customer array[]) {}
customer array[9];
takes_array(array);
But it's really an alternative syntax for a pointer
Code:
void takes_array(customer *array) {}
so you can't do a sizeof() on the "array" and get the correct results. If you want to sizeof() the array, pass the size of the array to the function:
Code:
#include <cstddef> // for size_t
void takes_array(customer array[], size_t size) {}
takes_array(array, sizeof(array) / sizeof(*array));