We can pass reference of an array to a function like:
void f(int (&a)[5]); int x[5]; f(x); //okay int y[6]; f(y); //error - type of y is not `in
Supplemental to the fine answer by sth, here is how to declare a class with a constant method returning an array reference:
class MyClass { public: const int (&getIntArray() const)[10]; };