What is the difference function call by value & function
call by reference?

Answer Posted / nb

In call by value,the function arguements will be duplicated
and sent to the called function from the function which is
calling it.

In call by reference ,the function arguements' address will
be passed to the called function by the calling function.
This method is the best practice since address is passed
rather than value.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why static variable is used in c?

546


Why do we use int main?

598


What does the function toupper() do?

645


Can a pointer be static?

609


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

587






What is the right type to use for boolean values in c? Is there a standard type?

557


program to convert a integer to string in c language'

1976


What is the difference between fread and fwrite function?

629


What is main function in c?

540


Write a factorial program using C.

636


Can we declare variables anywhere in c?

569


What does c mean in standard form?

591


Do pointers store the address of value or the actual value of a variable?

602


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

706


How are Structure passing and returning implemented by the complier?

704