Some interesting novice questions from a novice guy

Peter da Silva peter at ficc.ferranti.com
Sun Oct 28 07:45:16 AEST 1990


> >	while(*foo++)
> >		continue;

> 	while(*foo++) {
>            Hey you!  Just what the heck do you think you are
>            doing?  Stop that right now!  Go back to the
>            beginning and do it all over again, and try to do
>            it right this time!
>         }

You need to reprogram yourself. "continue" means "skip the rest of this loop".
Which makes perfect sense even if the loop's empty. It doesn't mean "go back
to the beginning", because that implies the test will not be performed again
(at least to me).

How many angels can dance on the head of a pin?
-- 
Peter da Silva.   `-_-'
+1 713 274 5180.   'U`
peter at ferranti.com



More information about the Comp.lang.c mailing list