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

What does the file stdio.h contain?

610


Which is best book for data structures in c?

607


What is meant by inheritance?

644


code for find determinent of amatrix

1526


How can I read in an object file and jump to locations in it?

588






Explain what will the preprocessor do for a program?

610


What are types of preprocessor in c?

626


Why do we use main function?

650


What is difference between constant pointer and constant variable?

640


What is selection sort in c?

617


Can a function argument have default value?

684


Can a pointer be volatile in c?

547


Which driver is a pure java driver

998


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

988


Why does everyone say not to use gets?

614