Monday 1 June 2015

Q48,paper 3,J 13. When an array is passed as a parameter to a function which of the following statements is correct ?



(A) The function can change values in the original array.
(B) The function cannot change values in the original array.
(C) Results in compilation error.
(D) Results in runtime error.
Answer A.
Explanation.
Function can change the value in the original array when a reference of variable is passed as the argument.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.