Friday, January 27, 2012

call by value, call by reference

Call by value  
         Copying value of variable in another variable. So any change made in the copy will not affect the original location.
Call by reference
         Creating link for the parameter to the original location. Since the address is same, changes to the parameter will refer to original location and the value will be over written.