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...

Explain "passing by value", "passing by pointer" and
"passing by reference" ?

Answer Posted / roshanpr

During pass by value a duplicate copy of the parameters
passed are created. Any changes made to copy will not
reflect the actual parameters.

In pass by pointer(it called as pass by address) duplicate
copy is not created. and any chagnes made to copy will
reflect in actual parameters also.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When there is a global variable and local variable with the same name, how will you access the global variable?

1103


How can we access protected and private members of a class?

1120


Write about the local class and mention its use?

1084


What is c++ course?

1051


What is nested class in c++?

965


What is the syntax for a for loop?

1146


What is c++ mutable?

1119


What is virtual methods?

1129


Do you know what are pure virtual functions?

1152


What is switch case in c++ syntax?

1116


Should the this pointer can be used in the constructor?

1030


Why can’t you call invariants() as the first line of your constructor?

1029


Difference between delete and free.

1081


What are disadvantages of pointers?

1042


What is c++ & why it is used?

1101