Array Size

  • Thread starter Thread starter Sachi
  • Start date Start date
Not positive but 90% sure....since Array's take Ints as Indexes, it'd be the
max size of integers 10 digits
 
Hi Sachi,

The maximum array size allowed in .NET is 2 GB. Anyway,
creating the array depends on the memory capacity of the
system. Since you may end up getting a OutOfMemory
Exception.

Hope that answers your question.

Regards,
Madhu

MCSD.NET | MVP
 
Madhu:

I was just curious, when I try ti intitalise an arrray with more than 10
digits, it doesn't let me. I understand the 2gb part now that you mention
it, but is that what puts the limitation on the int value when you
initialize the array, or are they both ceilings? I guess I should quite
being lazy and try it in the IDE to be sure, but if you know off of the top
of you head ;-) Thanks,

Bill
 
Back
Top