0 votes
97 views
in C program by (98.9k points)
edited

What is the difference between Call by Value and Call by Reference?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
When using Call by Value, you are sending the value of a variable as parameter to a function, whereas Call by Reference sends the address of the variable. Also, under Call by Value, the value in the parameter is not affected by whatever operation that takes place, while in the case of Call by Reference, values can be affected by the process within the function.

Related questions

+1 vote
1 answer 170 views
0 votes
1 answer 100 views
0 votes
1 answer 108 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

537 users

...