Consider the following statements S1, S2 and S3 :
S1 : In call-by-value, anything that is passed into a function call is unchanged in the caller’s scope when the function returns.
S2 : In call-by-reference, a function receives implicit reference 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.
So, option (C) is correct.
Quiz of this Question