"for" loops
Doug Gwyn
gwyn at smoke.BRL.MIL
Sat Jan 28 13:58:06 AEST 1989
In article <19579 at agate.BERKELEY.EDU> bowles at eris.berkeley.edu (Jeff A. Bowles) writes:
>... the "for" loop is something that's really kinda nice:
The main purpose of "for" in C is to collect all the loop control
pieces together on a single line to make them more evident:
for ( p = head.next; p != &head; p = p->next )
...
Certainly this particular can be accomplished in numerous ways,
but it's hard to imagine anything that would be clearer than that.
More information about the Comp.lang.c
mailing list