There is actually no need to pass an array by reference explicitly in C++ because an array is always by reference by default.