The limitation is not on the size of the array but the memory that your program can use at a time.

Whats the compiler you are using ?