in reply to Re: Re: {} vs do{}
in thread {} vs do{}
is NOT equivalent to:do { BLOCK } while ( COND );
In the first case, the code in BLOCK is executed once before checking the condition. This goes for until as well. However:while ( COND ) { BLOCK }
is equivalent to:do { BLOCK } for ( LIST );
for ( LIST ) { BLOCK }
MeowChow s aamecha.s a..a\u$&owag.print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: {} vs do{}
by John M. Dlugosz (Monsignor) on Jul 04, 2001 at 23:14 UTC |