Thursday, July 9, 2009

What is call by reference?Does C language supports call by reference?

Pass-by-reference is giving actual arguments to a function by "passing" the references of the arguments to the function. In contrast, in pass-by-value, functions have a copy of the arguments passed to them.





C does not really have a pass-by-reference feature. But there are ways around it, by using pointers for example.


http://www.c-faq.com/ptrs/passbyref.html


http://www.comp.nus.edu.sg/~esim/faq/nod...


http://publib.boulder.ibm.com/infocenter...


No comments:

Post a Comment