<<mod edit - split from thread >>
Hi there,
i am also new to c programming and have also a question concerning the malloc/free functions.
The following code:
The program gives a segmentation fault when calling "free"Code:double *pAr = (double*)calloc(100, sizeof(*pAr)); for(i=0;i<101;i++) do something if(pAr)free(pAr);
where I would expected to do so when passing over the array boundary
or to ignore that.