What is the difference function call by value & function
call by reference?
Answer Posted / nb
In call by value,the function arguements will be duplicated
and sent to the called function from the function which is
calling it.
In call by reference ,the function arguements' address will
be passed to the called function by the calling function.
This method is the best practice since address is passed
rather than value.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why static variable is used in c?
Why do we use int main?
What does the function toupper() do?
Can a pointer be static?
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
What is the right type to use for boolean values in c? Is there a standard type?
program to convert a integer to string in c language'
What is the difference between fread and fwrite function?
What is main function in c?
Write a factorial program using C.
Can we declare variables anywhere in c?
What does c mean in standard form?
Do pointers store the address of value or the actual value of a variable?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
How are Structure passing and returning implemented by the complier?