J
Jasper Aikema
Hi,
I do have the next code in my program:
int main(void)
{
double a[6],x[5];
int i;
a[0] = 4;
printf("a[0] = %lf\n\n", a[0]); // a[0] = 4.000000
for (i=0;i<=6;i++)
{
x = 6;
}
printf("a[0] = %lf\n\n", a[0]); // a[0] = 6.000000 return 0;
}
If I run it, first is says a[0] = 4 and later a[0] = 6. But I didn't
change a[0]. How is that possible, do I do something wrong or is there a
ghost in my computer switching bits .
I compiled it on an other computer, and got the same problem.
I do have the next code in my program:
int main(void)
{
double a[6],x[5];
int i;
a[0] = 4;
printf("a[0] = %lf\n\n", a[0]); // a[0] = 4.000000
for (i=0;i<=6;i++)
{
x = 6;
}
printf("a[0] = %lf\n\n", a[0]); // a[0] = 6.000000 return 0;
}
If I run it, first is says a[0] = 4 and later a[0] = 6. But I didn't
change a[0]. How is that possible, do I do something wrong or is there a
ghost in my computer switching bits .
I compiled it on an other computer, and got the same problem.