Hello
This is not a file only.
this is a project with about 200 files (c,h). and I write a file and add it to the project .the other files were compile without error but when runing my file the error segmentation fault apear.
I think when the equalitty t=mat1[i][j] the error accoured.
when the matr
I don't see where you are setting "n". Give a complete program as a
testcase and I'll look into it.
Jon
On Wed, 27 Aug 2003, reza saeidinia wrote:
> Hi.
> I hava a program that contains following codes :
> static int ** mat1=NULL;
> static int * a=NULL;
> mat1=(int **) malloc((sizeof (int *)*n)
Hi.
I hava a program that contains following codes :
static int ** mat1=NULL;
static int * a=NULL;
mat1=(int **) malloc((sizeof (int *)*n));
for (i=0; i
mat1[i]=(int *) malloc(sizeof(int)*n);
a=(int *) malloc(sizeof(int)*n);
for (i=0;i
for (j=0;j
mat1[i][j]=0;
printf("ok");
/*commen