I am working on an application, there were three possible sizes for the data entered:
- small: 1000 elements
- medium = 5000 elements
- large = 500,000 items
The problem is that I cannot allocate a large array. It seems that a size larger than 5000 is not accepted.
I get a runtime error when I do the following:
long size=1000; char ch; int arr[size]; ch=getch(); if(ch==..) size=...;
Sizes 1000 and 5000 seem to work fine, but how can I make an array of size 500k this way?
Nathalie b
source share