Variables initialized as long ints in for loop cause crash <p>Using MinGW C compiler, this code crashes my program. NN has value 439470944 and NN and j are initialized as long-integers.</p> <pre><code>float *F=NULL; F = (float *)malloc(NN*sizeof(float)); for(j=0; j&lt;NN;j++) F[j] = 0; // ensure F[] starts empty. </code></pre>