Sorry I have no updated this in a while, I got carried way with other things. Anyways, I keep getting a segmentation fault when I run my program. Here is my code:
Any idea whats wrong? And just to clarify, I said I was reading in two bytes before (which I still am going to need to do) but for now I am just doing one.
int main (int argc, char *argv)
m=fread(&q, sizeof(q), 1, fp);
printf("\n%f and %i \n\n", q,m);