I have somewhat of a mysterious crash on my program. As far as myself and my primitive knowledge are concerned, this litterally does not make any sense at all, but maybe you guys can make some sense out of it.
Basically, inside a loop, I modify a float variable (which is actually an array), and then right after I modify it, I print its value. For some specific value, it'll crash when trying to print it. My print line looks like this:
printf("i: %d j: %d value: %lf\n", i, j, value[i][j]);
There are 2 parts to my printf: the location in the array, and the value itself. When I split these two parts into 2 printf statements, it does NOT crash. In other words, when I replace the above with:
printf("i: %d j: %d ", i, j); printf("value: %lf\n", value[i][j]);
there is no crash, even though the output would exactly be the same (without crashes).
To me, this doesn't even make sense. Any of you know what the problem could be? 'Cause I have no idea what the problem is, which means that I wouldn't even know how to fix it.
Any help would be greatly appreciated.
Thanks a lot.