Re: for loop (c-lang)
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Tue, 27 Feb 2007 10:21:07 -0600
Dodgy wrote:
On 26 Feb 2007 05:18:51 -0800, mohdalibaig@xxxxxxxxx waffled on about
something:
why does this loop execute once
for( ; 0 ;)
printf("Why"); ???
For loops will always execute at least once as the end condition is
only ever checked at the end of the code block, where the "next" would
be in basic.
This is why people shouldn't ask C questions in a Delphi group. They're more likely to get answers from people who don't really know C.
--
Rob
.
- References:
- for loop (c-lang)
- From: mohdalibaig
- Re: for loop (c-lang)
- From: Dodgy
- for loop (c-lang)
- Prev by Date: Re: for loop (c-lang)
- Next by Date: Re: React when the program isn't focused
- Previous by thread: Re: for loop (c-lang)
- Next by thread: Re: for loop (c-lang)
- Index(es):