edited by
1,681 views
9 votes
9 votes

Various parameter passing mechanisms have been in used in different programming languages. Which of the following statements is true?

  1. Call by value result is used in language Ada.
  2. Call by value result is the same as call by name.
  3. Call by value is the most robust.
  4. Call by reference is the same as call by name.
  5. Call by name is the most efficient.
edited by

2 Answers

2 votes
2 votes
edited by
1 votes
1 votes

I accept the fact that option A is right. But can anyone please tell why option B isn't correct. 
Let a = 3; If we call by value i.e. 3, it's fine & if we call by name i.e. 'a', it is again 3.
It seems to be correct both ways.  :)

edited by
Answer:

Related questions