Answer:
The main difference between these two is mentioned below:
BY VAL: The changes that are made will not be reflected back to the variable.
By REF: The changes will be reflected back to that variable.( same as & symbol in c, c++)
Asked In: Many Interviews |
Alert Moderator