In, call by value, a parameter acts within the function as a new local variable initialized to the value of the argument (a local copy of the argument). Any changes made to that variable will remain local and will not reflect outside the function.
If you pass immutable arguments like integers, strings or tuples to a function, the passing acts like call-by-value.
Answer :
In, call by value, a parameter acts within the function as a new local variable initialized to the value of the argument (a local copy of the argument). Any changes made to that variable will remain local and will not reflect outside the function.
If you pass immutable arguments like integers, strings or tuples to a function, the passing acts like call-by-value.
need an explanation for this answer? contact us directly to get an explanation for this answer