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

What are the disadvantages of a shell structure?

0 Answers  


Why do we use static in c?

0 Answers  


enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

4 Answers   ME,


What is a stream water?

0 Answers  


diff. between *p and **p

3 Answers  






List some applications of c programming language?

0 Answers  


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

0 Answers  


Describe the steps to insert data into a singly linked list.

0 Answers  


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

0 Answers   Aegis, CDAC, Infosys,


Function shall sum members of given one-dimensional array. However, it should sum only members whose number of ones in the binary representation is higher than defined threshold (e.g. if the threshold is 4, number 255 will be counted and 15 will not) - The array length is arbitrary - output the results to the stdout

0 Answers   XYZ,


How is actual parameter different from the formal parameter?

0 Answers  


write a progam to display the factors of a given number and disply how many prime numbers are there?

2 Answers  


Categories