Thank you all for your input, It seems clear that an const unsigned int would be the best choice while checking for a segfault error. I had assumed that creating an array of such a large size would cause some kind of an error on most systems but wasn't sure what to do about it.