I have a problem in the following code. Why, the output produced in "line 3" and "line 4" are not same. Even though the S1 is getting assigned the value of S2 in "line 2", why , this is not getting passed to "line 4".
I always get confused with this parameter passing. Could you please explain me.