Windows- 'C' Turbo C, "ARRAY SIZE TOO LARGE"
|
Light Poster
|
|
| 1Apr2009,09:13 | #1 |
|
I would like to define the two dimensional array of approximately size 60000 x 13. But our compiler gives the error "Array size too large" . It allows me to have the dimensions of about 5200 x 12 only. So I want to know, is there any limitation for array size ?? If yes what is it ?? and how can I accomodate my aforesaid data ?
|
|
Go4Expert Founder
|
![]() |
| 1Apr2009,09:42 | #2 |
|
The limitation is not on the size of the array but the memory that your program can use at a time.
Whats the compiler you are using ? |
|
Light Poster
|
|
| 3Apr2009,06:55 | #3 |
|
Go4Expert Founder
|
![]() |
| 3Apr2009,08:57 | #4 |
|
I guesses it. This is the problem with the limitation of the memory your compiler can allocate as it does not have the idea of virtual memory
|
|
Light Poster
|
|
| 3Apr2009,13:17 | #5 |
|
Go4Expert Member
|
|
| 3Apr2009,14:28 | #6 |
|
Are you using run time memory allocation means heap memory?
If not try malloc/calloc for run time memory allocation, If problem is stil there try to find the compiler flag to increase the heap size. |
|
Go4Expert Founder
|
![]() |
| 3Apr2009,16:31 | #7 |
|
Light Poster
|
|
| 3Apr2009,21:39 | #8 |


