Re: program bug
- From: "Bill Cunningham" <nospam@xxxxxxxxx>
- Date: Fri, 02 May 2008 22:16:27 GMT
"Robert Gamble" <rgamble99@xxxxxxxxx> wrote in message
news:2d73e006-fc0d-4ed7-ae1e-43535dea6140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
a is not initialized, referencing its value invokes undefinedbehavior.
a=fgetc(ifp);
fputc(a,ofp);
In the beginning a was declared. Is it not enough in this case to simply
declare an int? Or should I have done this int a=0; at the beginning of the
program?
Bill
.
- Follow-Ups:
- Re: program bug
- From: CBFalconer
- Re: program bug
- From: Robert Gamble
- Re: program bug
- References:
- program bug
- From: Bill Cunningham
- Re: program bug
- From: Robert Gamble
- program bug
- Prev by Date: Re: help required.
- Next by Date: Re: Testing the keyboard buffer for MT/Not MT
- Previous by thread: Re: program bug
- Next by thread: Re: program bug
- Index(es):