Aide en simple programme en FORTRAN svp

djwy · 1 · 1708

djwy

  • Newbie
  • *
    • مشاركة: 47
    • مشاهدة الملف الشخصي
    • البريد الالكتروني
في: آذار 01, 2013, 07:25:20 مسائاً
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:

?By reference-
?By value-
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:

By reference      M=2-
By value            M= 3-
By value Result   M=4-

 est ce que vraie?
[/LEFT?]