Using MinGW C compiler, this code crashes my program. NN has value 439470944 and NN and j are initialized as long-integers.
float *F=NULL;
F = (float *)malloc(NN*sizeof(float));
for(j=0; j<NN;j++) F[j] = 0; // ensure F[] starts empty.
Using MinGW C compiler, this code crashes my program. NN has value 439470944 and NN and j are initialized as long-integers.
float *F=NULL;
F = (float *)malloc(NN*sizeof(float));
for(j=0; j<NN;j++) F[j] = 0; // ensure F[] starts empty.