Some interesting novice questions from a novice guy

Boyd Roberts boyd at necisa.ho.necisa.oz
Mon Nov 5 11:22:51 AEST 1990


In article <L3O6IN7 at xds13.ferranti.com> peter at ficc.ferranti.com (Peter da Silva) writes:
>
>I saw this discussion. Doesn't make sense. Doesn't anyone use:
>
>	while(*foo++)
>		continue;
>
>anymore?

No, that's just overly verbose.

	while (*p++)
		;

Is just fine.  I can see the semicolon.  That's all you need to see.

Hiding the semicolon `while (*p++);' just causes confusion.



Boyd Roberts			boyd at necisa.ho.necisa.oz.au

``When the going gets wierd, the weird turn pro...''



More information about the Comp.lang.c mailing list