I have the following lines in my program:
for(i=0; i<rows; i++)
{
fscanf(input, "%lf %lf", &time[i], &value[i]);
printf("%lf %lf\n", time[i], value[i]);
}
I want j (type double) to be the difference between the second and first values in time.
j=time[1]-time[0];
However, when I do that, j turns out to be close to 2000000000 every time. What am I doing incorrectly?