Re: dumb question #1 re: DO loops
- From: "Jugoslav Dujic" <jdujic@xxxxxxxxx>
- Date: Thu, 29 Dec 2005 14:58:15 +0100
StevO wrote:
| I am an long-time C programmer converting an old Fortran program to C.
|
| Given the following construct:
|
| DO 370 J=1,100
| IF(ID(J).LT.0) GOTO 370
| c (some other code here)
| 370 CONTINUE
|
| What does GOTO 370 do? Does it simply skip the "some other code here"
| section and continue with the next loop iteration (like a C "continue"
| statement within a C for() loop)? Or does it exit the loop?
The former ("continue") -- the end-label-line is part of the loop.
--
Jugoslav
___________
www.xeffort.com
Please reply to the newsgroup.
You can find my real e-mail on my home page above.
.
- Follow-Ups:
- Re: dumb question #1 re: DO loops
- From: StevO
- Re: dumb question #1 re: DO loops
- References:
- dumb question #1 re: DO loops
- From: StevO
- dumb question #1 re: DO loops
- Prev by Date: dumb question #1 re: DO loops
- Next by Date: Re: dumb question #1 re: DO loops
- Previous by thread: dumb question #1 re: DO loops
- Next by thread: Re: dumb question #1 re: DO loops
- Index(es):
Relevant Pages
|