what is call by value and call by reference

Answers were Sorted based on User's Feedback



what is call by value and call by reference..

Answer / kalyani.p.v

call by value:The called function sends its value as
argument to calling function.
Call by reference:The calling function sends address of
variable to the called functin.

Is This Answer Correct ?    16 Yes 3 No

what is call by value and call by reference..

Answer / vignesh1988i

CALL BY VALUE :
this means whenever ur arguments in the function contains only values without passing any addresses is called as call by value..

CALL BY REFERENCE :
this means that whenever u pass an address as an arragument when u call an function , that is called as reference by call


thank u

Is This Answer Correct ?    9 Yes 1 No

what is call by value and call by reference..

Answer / bharat

call by value means u call function with argument as value
of variable.
and
call by reference means u call function with argument as
address of variable

Is This Answer Correct ?    2 Yes 0 No

what is call by value and call by reference..

Answer / rina

function is call the value called the call by values
and the function call the address called the call by
refrence....

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Interview Questions

How would you find a cycle in a linked list?

3 Answers   NSN,


How can I read a binary data file properly?

0 Answers  


How does placing some code lines between the comment symbol help in debugging the code?

0 Answers  


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

0 Answers  


What does d mean?

0 Answers  






What character terminates all strings composed of character arrays? 1) 0 2) . 3) END

3 Answers  


How to Throw some light on the splay trees?

0 Answers  


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

0 Answers  


program to locate string with in a string with using strstr function

2 Answers   Huawei, Shreyas,


# define prod(a,b)=a*b main() { int x=2; int y=3; printf("%d",prod(x+2,y-10)); } the output of the program is a.8 b.6 c.7 d.none

7 Answers   Microsoft, TCS,


Should I learn c before c++?

0 Answers  


What are examples of structures?

0 Answers  


Categories