Machine-translated by Google. Questions are authored in English.
Top

Discussion

The Default Parameter Passing Mechanism is called as

  • A.Call by Value
  • B.Call by Reference
  • C.Call by Address
  • D.Call by Name

Answer: A

The default parameter passing mechanism in languages such as C, C++ and Java is call by value: the value of the actual parameter is copied into the formal parameter, and changes made inside the function do not affect the caller. Call by reference, by address and by name need special syntax or are used in other languages, so they are not the default. The keyed answer is Call by Value.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.