S1 : In call-by-value, anything that
is passed into a functi
on call is unchanged in the caller’s
scope when the function returns.
S2 : In call-by-reference, a
function receives implicit refer ence to a variable used as
argument.
S3 : In call-by-reference, caller is
unable to see the modified variable used as argument.
(A) S3 and S2 are true. (B) S3 and
S1 are true.
(C) S2 and S1 are true. (D) S1, S2,
S3 are true.
Answer C.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.