C++ does not allow to return an entire array as an argument to a function. However, you can return a pointer to an array ...
www.tutorialspoint.com