Posted By:
23 Jun, 2013 1:15 pm PDT

Functions differences in C

What is the difference between call by value and call by reference?

Passing by Value passes a value to the function to use. It creates a new space to hold this value.

Passing by Reference passes the pointer to the memory space for the variable. This means that anything you do to the variable in the function changes the actual value of the passed variable. This means that if you changed the variable in the function it will be changed outside the function too.


Please see the video for more details

Was it useful?  

Please login to reply to this problem.