Question

Explain the concept of call by reference, with suitable code in C for each. Give advantage and disadvantage of call by reference

30 Nov 2023
Answer :
Word Count : 799

In programming, *Call by Reference* is a method of passing arguments to a function. Instead of passing a copy of the variable (as in call by value), the address (reference) of the variable is passed. This allows the function to modify the actual value of the variable in the caller's scope.

### Concept of Call by Reference

When a function is called using *call by reference*, the function receives the reference (memory address) of the arguments, which means any changes made to the parameter within the function will directly affect the actual argument in the calling function. This is different from *call by value*, where the function only works with a copy of the argument, and modifications within the function do not affect the original variable.

In C, call by reference is implemented ___ _____ _________ _________ ________ ___ _______ _____ ______ _______.
________ ___ _________ ____ _______ ________.
___ _________ __________ __________ ________ _______.
__________ ______ _________ _______ _________ ______.
_____ ___ ________ _________ ___ ________ _____ _____ _______ __________ _________ _________.
______ _____ _________ _____ ____ ____ _______ ______ _______.
__________ __________ _____ ____ __________ __________ _______ _________ __________ _____ _______ ________.
_______ __________ ______ ________ ______ ________ _________ _________.
__________ __________ ____ ________ __________ _______ ______ ________ _________ ________ _______ ________.
__________ ________ ______ ___ _______ ______ _________ _______.
____ ________ _______ ______ ____ ______ _________ ________ _____.
_______ __________ __________ _______ __________ ________ _______ _____ __________ ______ _______ _____.
___ ______ ____ __________ _____ _____ ______ __________ _____ _______ ________.
______ ____ _____ ________ __________ __________ _______ _____.
______ _________ ___ ____ ______ ________ _________ _______ ___ __________ ________.
_________ _________ ___ _________ _________ ______ __________ _____ _________ _______ ______ _________.
________ _______ ________ ___ ________.
____ ____ ____ ________ _________ ______ ________.
________ ___ ____ __________ ______ ____.
________ ________ ____ ____ _________.
__________ _______ ________ _______ ________ _________ _____ ___ _________ ________ ________ _____.
______ ____ __________ _________ __________ _________ _____ ______ ______ ____ ________ ___.
_______ __________ ______ __________ ______ _________ ____ _______ ___.
____ _____ ____ _____ ________ ________ ________ ________ _________ ______.
______ _______ ________ _____ __________.
________ __________ _______ _____ ______ ______ ________ _______ _______ ___.
_________ ___ ____ ___ ___ _______ __________ _____ ________ _________ ___ _________.
________ ______ _____ _______ ______ ____ ___ ___ ____ ___ ___.
_____ ______ _____ ________ ____ _________.
_________ __________ ___ ____ ___ ____ ____.
___ ________ ___ _________ __________ _________ ____ _____ ________ ____.
_________ ____ ___ _______ _____ _____ ____.
________ __________ ____ _____ ___ _____.
___ __________ _____ ____ _____ _______ _______ ___ ___ _____.
________ _______ ____ __________ ______ ______ ____ ___.
_________ ____ ______ ________ _________ ________ ______ _______ ________ _____.
_____ ________ ______ __________ ____ _____.
________ ___ _________ ________ ____.
________ _________ _________ _______ ____ __________ ______ _________ _________ __________ __________.
___ _______ _______ __________ ___ ____.
__________ ____ ____ ___ ___ ___ ______ __________ ________.
_____ ___ ________ _____ _______ ________ ________ ___ ________ ________ _____ ___.
_____ _______ ____ __________ _______ __________ _____ ____ ___.
___ _________ ______ __________ _____ __________ ________ ____.
______ ________ ______ ____ _______ _____ ______ ___ ________.
____ ___ __________ __________ __________ ______ _________ ___ ____ ______ __________.
__________ ____ ______ ___ ___ ______ ________ _____ _____.
____ _____ ______ ________ __________ ___ ___.
_________ _____ _________ ____ _____ _____ ______ __________ _________ _______.
_______ ________ ___ _____ ____ ____ ___ __________ ________ _______ ____.
____ _______ ______ _________ __________ _______ _________ __________ ____ ________ __________ __________.
_________ ________ ___ ______ ______ _____ __________ _______ ______ ______ _____ ____.
____ ____ _______ _________ _______.
__________ ______ __________ __________ __________ _________.
_____ ________ ______ _________ ______ __________ ______ ______ ________ _______ ______ _________.
_________ ____ ______ ____ _________ __________ ____.
_________ __________ _____ _____ ________.
_________ _______ ________ _____ ________ ____ ____ _____ ________ ______ _____ __________.
_____ ___ _______ _________ ________ ______ ___ _____ _______.
_____ ______ _________ ______ __________ ___ _________ ____.
____ ________ _______ ___ _____ ____ ____ _________ ________ ____ ____ _____.
___ __________ __________ __________ _________.
______ ________ ________ ________ _____ __________ ____ ______.
____ _________ ________ ________ ____ _____ _______ ________ ____.
________ __________ ___ ________ ______ _____ _________ _____ ________ _________.
__________ _______ ________ ______ _______ ___ _________ ______ _____ _________ _______.
______ __________ ____ _____ _________ ______ ___ ____.
_________ ________ ______ _______ _____ _____.
________ __________ ____ _______ _____ _________ ______ ____ ___ _________ ______.
_________ _____ ____ ______ ____ __________.
____ ____ ______ ________ ____.
______ ________ _____ ___ _________ ____ _________ _________.
_________ _____ _____ ______ ____ ______ _________ _______ _________ ___ ________ ______.
________ _______ ________ __________ _____ ________ ______ _____ __________.
_______ _________ _____ _____ ___ _________ ____.
______ _________ ________ ___ ____ _________ _________ _______.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Explain the concept of call by reference, with suitable code in C for
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→