In some implementations of Fortran IV, the following code would print a 3. Can you suggest an

Question:

In some implementations of Fortran IV, the following code would print a 3. Can you suggest an explanation? How do you suppose more recent Fortran implementations get around the problem?

c      main program

call foo(2)

print*, 2

stop

end

subroutine foo(x)

x = x + 1

return

end

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: