What is the difference between pass by value by reference in c and pass by reference in c?
Answer:
Pass By Value:
Pass By Reference :
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Answer:
Pass By Value:
Pass By Reference :
- In Pass by reference, an address of the variable is passed to a function.
- Whatever changes made to the formal parameter will affect the value of actual parameters(a variable whose address is passed).
- Both formal and actual parameters shared the same memory location.
- it is useful when you required to returns more than 1 value.
need an explanation for this answer? contact us directly to get an explanation for this answer