First: please use code tags. It makes you code readable.
the following is my code and I am getting an error for this code I compiled it with cygwin and the error is "error while dumping state"
The program compiles fine for me, or do you mean a runtime error? Since I do not have the files, I would guess that:
if (sample == NULL)
You should insert a return 1; here, so the program quits when the file is non-existant.
and: for(i=0;i<=MAX;i++) This line means it will loop from 0 to 44000 which is 44001 times. But your array is only 44000 elemants, so this will cause an memory exception. Change it to: for(i=0;i<MAX;i++) regards Niek
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...