Question: Algol-60 provided two parameter-passing mechanisms: call-by-value and call-by-name. (i) Explain these mechanisms. (ii) Justify or criticize the statement that the former is expensive for arrays

Algol-60 provided two parameter-passing mechanisms: call-by-value and call-by-name. (i) Explain these mechanisms. (ii) Justify or criticize the statement that “the former is expensive for arrays and the latter interacts badly with side effects”. (iii) What parameter-passing mechanism(s) do C and Java use, and how do such languages deal with an array being passed as a parameter?

Step by Step Solution

3.45 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below ANSWER i In the callbyvalue mechanism a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!