How long can an array be, and how can I extend that length?
Labdabeta
182
Posting Pro in Training
Featured Poster
Recommended Answers
Jump to PostAn array's size is only limited to the memory of the machine running the code. If you want to make an array larger you will need to read up on dynamic arrays. If you need storage that can get very large or you need it to grow I would suggest …
Jump to PostIt is all dependent on the amount of ram int the system. Are you creating the array using the new operator or are you defining the size at compile time?
Jump to PostWell if you have a array of 100000 doubles it would only need about 8mb of ram so I'm not sure why you wouldn't be able to create an array of 10000 elements unless they use a lot of memory. What is the error that you are getting and what …
All 9 Replies
NathanOliver
429
Veteran Poster
Featured Poster
Labdabeta
182
Posting Pro in Training
Featured Poster
NathanOliver
429
Veteran Poster
Featured Poster
Labdabeta
182
Posting Pro in Training
Featured Poster
NathanOliver
429
Veteran Poster
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Labdabeta
182
Posting Pro in Training
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.