Array Size

  • Thread starter Thread starter Sachi
  • Start date Start date
S

Sachi

Hi,
Can anyone tell me maximum Array size allowed in .net?


Thanks,
Sachi
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top