I run this code on my mac (10.8.2) through the terminal, and for some n it ends with "Illegal instruction 4", does anyone know why or how to stop it?
I am confused as the code works fine except n = 43, 45, 47 and 57.
Also after n = 60 this happens for all n. This may be a memory issue, as it works fine at lower n values.
Note: everything related to the integer c comes down to decreasing the first while loop. It is preferable that the while loop read b <251 to give me 250 iterations, but instead I run something like b <51 for c = 1,2,3,4,5 to get 5 different files with 50 results, not 1 with 250.
The code is as follows:
#include <stdio.h>
Thanks for any light you spread on the subject, A.
source share