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
List some of the dynamic data structures in C?
What is the purpose of the preprocessor directive error?
What is typeof in c?
Is c procedural or object oriented?
What is 2 d array in c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What is the use of sizeof?
What is the difference between memcpy and memmove?
difference between object file and executable file
Difference between malloc() and calloc() function?
Explain what are binary trees?
What is sizeof c?
c language interview questions & answer
How can I get the current date or time of day in a c program?
Is null equal to 0 in sql?