What is meant by Call-By-Value and Call-By-Reference
Answers
Answered by
1
Answer:
The call by value method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function. ... By default, C programming uses call by value to pass arguments. In general, it means the code within a function cannot alter the arguments used to call the function.
Explanation:
The call by reference method of passing arguments to a function copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. It means the changes made to the parameter affect the passed argument.
Similar questions