what is call by value and call by reference
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
How would you find a cycle in a linked list?
How can I read a binary data file properly?
How does placing some code lines between the comment symbol help in debugging the code?
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.
What does d mean?
What character terminates all strings composed of character arrays? 1) 0 2) . 3) END
How to Throw some light on the splay trees?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
program to locate string with in a string with using strstr function
# 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
Should I learn c before c++?
What are examples of structures?