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 |
write a program wch produces its own source code aas its output?
What is a pointer and how it is initialized?
write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?
What does extern mean in a function declaration?
which one is better structure or union?(other than the space occupied )
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?
What is the use of bit field?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Which function in C can be used to append a string to another string?
Stimulate calculators to perform addition,subtraction,multiplication and division on two numbers using if/else statement?
Where does the name "C" come from, anyway?
What are pointers?
0 Answers Accenture, Tavant Technologies, Zensar,