I just tried it on my pc, and through placing beeps after every line, it is crashing at the very beginning of the first for loop, more precisely on this line.
Code:
for ( i=0; i<INTARRAY; i+=1 )