Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

List some of the dynamic data structures in C?

1303


What is the purpose of the preprocessor directive error?

1315


What is typeof in c?

1062


Is c procedural or object oriented?

1087


What is 2 d array in c?

1087


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1181


What is the use of sizeof?

1064


What is the difference between memcpy and memmove?

1086


difference between object file and executable file

6801


Difference between malloc() and calloc() function?

1271


Explain what are binary trees?

1128


What is sizeof c?

1122


c language interview questions & answer

2017


How can I get the current date or time of day in a c program?

1269


Is null equal to 0 in sql?

1189