CS 3304: Comparative Languages
Subprograms
[
Course Documents
] : [
Subprograms
]
Previous
Contents
Next
Keyword Index
Param Passing: Language Examples
FORTRAN
Before 77, pass-by-reference
77--scalar variables are often passed by value-result
ALGOL 60
Pass-by-name is default; pass-by-value is optional
ALGOL W: Pass-by-value-result
C: Pass-by-value
Pascal and Modula-2: Default is pass-by-value; pass-by-reference is optional