Re: C local auto-initialized?
Re: C local auto-initialized?
- Subject: Re: C local auto-initialized?
- From: Fritz Anderson <email@hidden>
- Date: Thu, 20 Sep 2007 20:19:16 -0500
Debug configuration:
sumY2 = 0
sumY2 = 16.000000
Release configuration:
sumY2 = 8.69289e-311
sumY2 = 16.000000
Which means I can't say either way whether it exhibits the problem (in
Release, the addend << the sum, for those playing along at home).
This quasi-bug is mocking me. I'll try to find a way to reproduce it.
I admit that it's perverse that I _want_ sumY2 to be non-zero.
I have been remiss in not thanking you, Kyle Sluder, Scott Ribe, Jack
Repenning, and Greg Guerin, for your patience and assistance.
— F
On Sep 20, 2007, at 8:00 PM, Chris Suter wrote:
Does the following program exhibit the program and if so, can you
send us the output?
#include <stdio.h>
int main ()
{
double sumY, sumY2;
double y = 4.0;
printf("sumY2 = %g\n", sumY2);
sumY2 += y * y;
printf("sumY2 = %f\n", sumY2);
return 0;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden