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


Please Help Members By Posting Answers For Below Questions

A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

634


What is the difference between typedef struct and struct?

590


What functions are used in dynamic memory allocation in c?

587


What is the difference between break and continue?

602


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1733






What is a built-in function in C?

783


What is the meaning of c in c language?

591


Why are algorithms important in c program?

613


How many header files are in c?

547


What’s the special use of UNIONS?

655


How can I send mail from within a c program?

576


What is the explanation for the dangling pointer in c?

669


How can I write functions that take a variable number of arguments?

620


What are the characteristics of arrays in c?

605


Differentiate between a structure and a union.

756