Hi friends,
I am using Mandriva Linux 9.2 and gcc.
My source code is,
int chunkin[7225][9] ; //no error
int i ;
for (i=0;i<7225;i++ )
{
chunkin[i][0] = somedata ;
- -
- -
chunkin[i][8] = somedata ;
}
This gives Segmentation fault. Upto i = 5439 (5440 values ) it is
working fine. After this it is giving Segmentation fault. Is this the
maximum number of data an array can hold ? If so, What should I do for
my array to hold 7225 * 9 data ([7225][9])
I am using Mandriva Linux 9.2 and gcc.
My source code is,
int chunkin[7225][9] ; //no error
int i ;
for (i=0;i<7225;i++ )
{
chunkin[i][0] = somedata ;
- -
- -
chunkin[i][8] = somedata ;
}
This gives Segmentation fault. Upto i = 5439 (5440 values ) it is
working fine. After this it is giving Segmentation fault. Is this the
maximum number of data an array can hold ? If so, What should I do for
my array to hold 7225 * 9 data ([7225][9])
Comment