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

Answers were Sorted based on User's Feedback



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

Answer / nakul sharma

In Call by value we simply passes the variable to the
function but in CAll by reference we actually pass the
memory address where the variable we want to pass is stored.

Is This Answer Correct ?    9 Yes 0 No

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

Answer / sona

In call by reference we provide address of another variable


In call by value we directly assigned value to variable

Is This Answer Correct ?    9 Yes 1 No

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

Answer / 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

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

Answer / rahul

In call by value function, the value of the actual
parameters or arguments from calling function is passed on
to the called functions i.e. actual value is copied into the
formal parameters of called function. The arguments passed
may be variables of any data type or constants also.

In call by reference, the address of actual parameters are
passed on to the called functions from calling functions.

So, the values stored in these memory locations can be
altered, which is reflected in calling functions also.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / sangeetha

In call by value, the changes made in the formal arguments
does not affect the actual argument

In call by reference, the changes made in the formal
arguments does affect the actual argument

Is This Answer Correct ?    1 Yes 0 No

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

Answer / abirami

function call by refernce will be begin with "&" symbols.i
think sooo..
but i dont know to explain function call by values!!!!!!!

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More C Interview Questions

a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static Which of the Following Statements are true w.r.t Bit-Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture, Digg.com,


Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.

3 Answers   SilverKey,


What is volatile in c language?

2 Answers   HCL, TCS,


writw a program to insert an element in the begning of a doubly linked list

1 Answers  


What is the difference between strcpy() and memcpy() function in c programming?

0 Answers  






# define x=1+4; main() { int x; printf("%d%d",x/2,x/4); }

5 Answers  


what is c programming?

3 Answers   TCS,


Explain how are 16- and 32-bit numbers stored?

0 Answers  


When c language was developed?

0 Answers  


What is the scope of global variable in c?

0 Answers  


what is the difference between i++ and ++i?

5 Answers  


Can we include one C program into another C program if yes how?

7 Answers   Infosys,


Categories