Salut à tous.....
ce un exercice en FORTRAN avec solution ... est-ce que le solution correct?
SUBROUTINE TEST (X,Y,Z)
X=1
Z=X+Y
RETURN
END
...
Consider the fllowing code fragement :
N=2
CALL TEST(N,N,M)
question
What will be the final value of M if the parameters are passed:
1-By reference?
2-By value?
3-By value Result? (the actual is copied into the formal before executing the procedure, then the formal is copied into the actual after the procedure is finished).
je tentative ...la solution est:
1-By reference M=2
2-By value M= 3
3-By value Result M=4
est ce que vraie?
Partager