Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!gwyn@BRL.ARPA From: gwyn@BRL.ARPA (VLD/VMB) Newsgroups: net.lang.c Subject: Re: for <==> while (an exception) Message-ID: <11560@brl-tgr.ARPA> Date: Sun, 14-Jul-85 03:01:34 EDT Article-I.D.: brl-tgr.11560 Posted: Sun Jul 14 03:01:34 1985 Date-Received: Wed, 17-Jul-85 04:29:37 EDT Sender: news@brl-tgr.ARPA Lines: 7 There is no problem; "for" is not entirely equivalent to the corresponding "while" construct, as you have observed. K&R didn't make this clear, although if you read about "continue" in Appendix A, the difference becomes apparent. Later commentators have usually been more careful in declaring that the "for" loop is equivalent to the corresponding "while", by adding a caveat about "continue".