Pass pointer to array instead of the array by value