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 are the features of the c language?
Is sizeof a keyword in c?
Can you please compare array with pointer?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Explain the array representation of a binary tree in C.
What is page thrashing?
What does typeof return in c?
Explain about C function prototype?
Why header files are used?
What is the process of writing the null pointer?
What is a structure in c language. how to initialise a structure in c?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is wrong with this declaration?
List some basic data types in c?