2081 9

BIT102 ยท 2081 ยท 5 marks

Explain call by reference of a function with suitable example.

Explain call by reference of a function with suitable example. [5]

C ProgrammingChapter 7: Functions and RecursionCall by reference for swapping

Call by reference is a method of passing arguments to a function where the address (reference) of the actual argument is passed to the formal parameter of the function. Any changes made to the formal parameter inside the function directly affect the actual argument because both refer to the same ...