Question: The other statements are incorrect: Pass By Value does not copy the variable value in one more memory location. The value is simply copied and
The other statements are incorrect:
Pass By Value does not copy the variable value in one more memory location. The value is simply copied and passed to the function, without creating a new memory location.
Pass By Value can use pointers. Although the value is copied, pointers can be used to pass the memory address of a variable, allowing the function to indirectly modify the original variable.
Therefore, the correct answer is: Pass By Value protects your source or original variables from changes in outside functions or called functions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
