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
Explain what are its uses in c programming?
Differentiate between static and dynamic modeling.
What is the description for syntax errors?
What is dynamic memory allocation?
Explain what are header files and explain what are its uses in c programming?
How old is c programming language?
Is struct oop?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Why is sprintf unsafe?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
what is use of malloc and calloc?
Here is a neat trick for checking whether two strings are equal
Explain setjmp()?
What does %p mean?
What are keywords c?