Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site riccb.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!riccb!rjnoe From: rjnoe@riccb.UUCP (Roger J. Noe) Newsgroups: net.lang.c Subject: Re: Loop "Equivalencies" Message-ID: <585@riccb.UUCP> Date: Wed, 20-Nov-85 09:07:00 EST Article-I.D.: riccb.585 Posted: Wed Nov 20 09:07:00 1985 Date-Received: Thu, 21-Nov-85 07:20:31 EST References: <10200026@ada-uts.UUCP> Organization: Rockwell International - Downers Grove, IL Lines: 28 > In Appendix A (C Reference Manual), p. 202, and p. 56, it says that > the following: > > for (expr1; expr2; expr3) > statement > > is equivalent to: > > expr1; > while (expr2) { > statement > expr3; > } > > This is not true if "statement" is a block which contains a "continue" > > Am I missing something? > -- Rich Wagner Nope, you're exactly right. It should be this way: expr1; while(expr2) { statement contin: expr3; } and should refer to the continue statement a few sections later in appendix A. -- Roger Noe ihnp4!riccb!rjnoe