Question
Explain, with an example, the difference between passing by value and passing by reference.
Answer :
Word Count : 163
______ _____ ___ _____ _______ ________.
____ ___ __________ ______ __________ ________ _________ __________ ___.
_____ ___ _______ ____ ___ _____ ____ __________ _____ _________ _____ _________.
_______ ________ _____ ___ ________ ____ ________ _______ _________ __________.
_______ _______ ______ _________ ___ ______ __________ ______ _____ ___.
________ ________ _____ ________ _____ __________ __________ _______ ________.
______ ______ ____ ______ _______ ______ ___ _______ ______.
_________ ____ ____ _______ ________ ________ _______ _____ ______.
_______ __________ ________ ________ ____ ___ ________ __________ ______ _________ __________.
_______ ________ _______ ________ ______ _____ ________ _______ ________ _______ _______ _______.
_____ __________ ________ _________ __________ ____ ______ _________ _________ ______ ________.
Skip in 10
In programming, passing by value and passing by reference are two ways of passing arguments to functions.
When a variable is passed by value, a copy of the actual value is passed to the function. This means changes made to the parameter inside the function do not affect the original value outside the function. For
____ ___ __________ ______ __________ ________ _________ __________ ___.
_____ ___ _______ ____ ___ _____ ____ __________ _____ _________ _____ _________.
_______ ________ _____ ___ ________ ____ ________ _______ _________ __________.
_______ _______ ______ _________ ___ ______ __________ ______ _____ ___.
________ ________ _____ ________ _____ __________ __________ _______ ________.
______ ______ ____ ______ _______ ______ ___ _______ ______.
_________ ____ ____ _______ ________ ________ _______ _____ ______.
_______ __________ ________ ________ ____ ___ ________ __________ ______ _________ __________.
_______ ________ _______ ________ ______ _____ ________ _______ ________ _______ _______ _______.
_____ __________ ________ _________ __________ ____ ______ _________ _________ ______ ________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.