Top

Discussion

The parameter passing mechanism for an array is

  • A.call by value
  • B.call by reference
  • C.call by value-result
  • D.None of the above

Answer: B

The parameter passing mechanism for an array is call by reference.This technique uses in/out-mode semantics. Changes made to formal parameter do get transmitted back to the caller through parameter passing. Any changes to the formal parameter are reflected in the actual parameter in the calling environment as formal parameter receives a reference (or pointer) to the actual data.

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

Post your comment