dumb question #1 re: DO loops



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?


.


Quantcast