what is the differance between pass by reference and pass
by value.
Answer Posted / sowjanya
in pass by value method actual values of a variable are
copied to the formal arguments . modifications of these
values by performing some operations on it are not effect on
the actual value. i.e these modifications are not returned
to calling function.
in pass by reference method addresses of the actual
variables are copied to the formal arguments. modification
of these variable values effects the actual value by
returning these modifications to calling function.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is bss in c?
What is structure packing in c?
how logic is used
Why void main is used in c?
What is this infamous null pointer, anyway?
What math functions are available for integers? For floating point?
What is C language ?
Explain heap and queue.
Difference between exit() and _exit() function?
What is the difference between array_name and &array_name?
How does #define work?
What is the c value paradox and how is it explained?
What is exit() function?
What is a structure member in c?
What does the c preprocessor do?