dumb question #1 re: DO loops
- From: StevO <stevomatic2000@xxxxxxxxxxx>
- Date: Thu, 29 Dec 2005 13:53:29 GMT
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?
.
- Follow-Ups:
- Re: dumb question #1 re: DO loops
- From: *** Russell
- Re: dumb question #1 re: DO loops
- From: Jugoslav Dujic
- Re: dumb question #1 re: DO loops
- Prev by Date: Re: How to halt a running program without losing data?
- Next by Date: Re: dumb question #1 re: DO loops
- Previous by thread: Serial port programming with G95
- Next by thread: Re: dumb question #1 re: DO loops
- Index(es):