Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Willem <willem@toad.stack.nl> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: (simple) condition within for loop |
| Date | 2011-06-13 14:39 +0000 |
| Organization | Stack Usenet News Service |
| Message-ID | <slrnivc892.1crt.willem@toad.stack.nl> (permalink) |
| References | (2 earlier) <95l0abFrhmU6@mid.individual.net> <eojav65u47b3iklhiolo1vfqc5o9j3h3gp@4ax.com> <95l2b6FrhmU8@mid.individual.net> <feuav6dc8f74q3ash8v9vtrq6qj21limht@4ax.com> <8ab97076-12ea-4033-8bdc-fe340f25f3dd@d1g2000yqm.googlegroups.com> |
papoupapa wrote:
)> On the other hand I would agree with you that using the if-break on
)> the second loop would be less succinct and the output loop would be
^^^^^^
)> perfectly fine as:
)>
)> for (i = 0; Numbers[i] != 0 && i < CMAX; i++)
)> printf("\n%d. : %d", i+1, Numbers[i]);
)
) If you use Numbers[i] as a testing variable, you have to initialize it
) with something different from 0 at first...
Read again.
) By the way, is the break statement different from goto in machine
) language?
No, but the while statement and the for statement are the same as well.
It's all goto in machine language.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
(simple) condition within for loop papoupapa <papoupapoug@gmail.com> - 2011-06-12 15:58 -0700
Re: (simple) condition within for loop Ian Collins <ian-news@hotmail.com> - 2011-06-13 11:08 +1200
Re: (simple) condition within for loop Geoff <geoff@invalid.invalid> - 2011-06-12 16:24 -0700
Re: (simple) condition within for loop Ian Collins <ian-news@hotmail.com> - 2011-06-13 11:27 +1200
Re: (simple) condition within for loop Geoff <geoff@invalid.invalid> - 2011-06-12 16:47 -0700
Re: (simple) condition within for loop Ian Collins <ian-news@hotmail.com> - 2011-06-13 12:01 +1200
Re: (simple) condition within for loop Geoff <geoff@invalid.invalid> - 2011-06-12 19:51 -0700
Re: (simple) condition within for loop papoupapa <papoupapoug@gmail.com> - 2011-06-13 06:00 -0700
Re: (simple) condition within for loop Willem <willem@toad.stack.nl> - 2011-06-13 14:39 +0000
Re: (simple) condition within for loop "J. J. Farrell" <jjf@bcs.org.uk> - 2011-06-13 22:13 +0100
Re: (simple) condition within for loop Geoff <geoff@invalid.invalid> - 2011-06-13 17:13 -0700
Re: (simple) condition within for loop Tim Rentsch <txr@alumni.caltech.edu> - 2011-06-14 15:58 -0700
Re: (simple) condition within for loop Nobody <nobody@nowhere.com> - 2011-06-13 02:32 +0100
Re: (simple) condition within for loop "Herbert Rosenau" <os2guy@pc-rosenau.de> - 2011-06-14 06:41 +0000
csiph-web