Pass by Value
This lesson discusses how to pass arguments to the function by value.
We'll cover the following
Arguments Pass by Value
The values from the calling function are copied to the parameters in the called function at the time the function is called. The called function can change the values of the parameter variables all it wants. This change will not be reflected in the variables passed as arguments in the calling function.
Syntax
The general syntax of passing arguments by value is:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy