Name: Anonymous 2007-12-30 18:19
int *array;
array=malloc(1000001*sizeof(int));
int j=1;
for(j=1;j<=1000000;j++)
{
array[j]=j;
}
Why am I getting an segfault error? What could I do (aside of reading SICP of course)?
array=malloc(1000001*sizeof(int));
int j=1;
for(j=1;j<=1000000;j++)
{
array[j]=j;
}
Why am I getting an segfault error? What could I do (aside of reading SICP of course)?