You should avoid using magic numbers.
You mentioned that you want to return the array so that you can check it; Well a much better way to do this would be to make a public method to do the checking for you, thus simplifying implementation code as well as putting the array checking in its proper place. This concept is sometimes called encapsulation or information hiding.
eg:Code:...
public:
int checkArray(); // Returns some status code
...