I couldn't really find anything on it, either. I'm guessing that it really depends on the system. You could probably create as many elements as you could the largest integer on a system would be, considering how that could differ for different platforms, ie, 64 Bit vs 32 bit.
But before that, you'd probably reach the upper limit of memory. Keep in mind that every time you place an object in an array, it allocates a certain amount of memory to that object. So, if an object of type int is 32 bits long, that's how much memory that would be allocated for each element in the array. So, if an array consisted of 500 int objects, then it would be right at around 2KB in size.
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
Offline 2,519 posts
since Dec 2003