When an argument is passed by value:-
a. The function accesses the argument's original value in the calling program
b. The function cannot access the argument's value
c. The function copies the value of argument to its own variable
d. Arguments reference is used in function definition?
Answers
Answered by
8
option number C is the correct answer....
Answered by
1
When an argument is passed by value The function copies the value of the argument to its own variable.
An argument is passed by value?
- The copy is the target of the function. This implies that if a function modifies the value of an argument supplied by value, the effect is limited to that function; the copy changes, but the original value in memory remains unchanged.
- When a method receives an argument by value, it receives a copy of the argument but does not have access to the original.
- The parameter of the called functions will be the same as the callers' provided argument when passing by reference.
Similar questions