Re: for loop (c-lang)



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
.