This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Declaring automatic variables inside a while loop
- From: Andrea 'Fyre Wyzard' Bocci <fwyzard-gcc at libero dot it>
- To: Jim Wilson <wilson at specifixinc dot com>
- Cc: Swaminathan Venkatakrishnaprasad <vswami at agere dot com>,gcc at gcc dot gnu dot org
- Date: Wed, 21 Jan 2004 23:28:49 +0100
- Subject: Re: Declaring automatic variables inside a while loop
- References: <010a01c3dfa9$1f4f1790$dab65e80@ags.agere.com><400E294A.5030003@specifixinc.com>
By the way, in your example, you are setting the loop iterator (i) to an
uninitialized local (j) which isn't going to work.
Well, it's going to "work", if you don't care what the actual behaviour is
- ie., if the code hangs at random executions...
.fw.