What is the difference function call by value & function
call by reference?
Answer Posted / 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 |
Post New Answer View All Answers
What is static identifier?
What is const and volatile in c?
What are the complete rules for header file searching?
What is the difference between formatted&unformatted i/o functions?
write a c program to find the sum of five entered numbers using an array named number
Explain what are bus errors, memory faults, and core dumps?
Write a program for finding factorial of a number.
Explain spaghetti programming?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Difference between constant pointer and pointer to a constant.
If I have a char * variable pointing to the name of a function ..
What is an auto keyword in c?
What is s or c?
What happens if a header file is included twice?
What are the types of functions in c?