Re: C local auto-initialized?
Re: C local auto-initialized?
- Subject: Re: C local auto-initialized?
- From: Chris Suter <email@hidden>
- Date: Fri, 21 Sep 2007 11:00:39 +1000
On 21/09/2007, at 10:21 AM, Fritz Anderson wrote:
Yes, that is good. However, people seem to forget what I'm doing:
I'm trying to teach how to debug something. I DON'T WANT TO AVOID
THE BUG. And, if I'm debugging, there's no optimization. Besides,
I'm writing for instructional purposes, teaching Xcode, and at the
very beginning, I can't detour people away from instructional tasks
to adjusting the development environment.
I did realise that. Just wanted to point it out in case you didn't
know about it and it might benefit other readers of this list.
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;
}
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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