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 difference between pass by reference and pass by
value?

Answer Posted / anwer sayed

Pass By Reference :
In Pass by reference address of the variable is passed to a
function. Whatever changes made to the formal parameter will
affect to the actual parameters
- Same memory location is used for both variables.(Formal
and Actual)-
- it is useful when you required to return more then 1 values
Pass By Value:
- In this method value of the variable is passed. Changes
made to formal will not affect the actual parameters.
- Different memory locations will be created for both variables.

Read more:
http://wiki.answers.com/Q/What_is_the_difference_between_pass_by_value_and_pass_by_reference_in_c#ixzz16MOpWSLk

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3527


Is data hiding and abstraction same?

1040


What is the difference between procedural programming and oops?

1135


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6679


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2197


Can an interface inherit a class?

1066


What is destructor give example?

1051


How do you answer polymorphism?

1062


What is the real life example of polymorphism?

1177


what are the realtime excercises in C++?

2840


What is polymorphism and its types?

1070


What makes a language oop?

1066


What is oops and its features?

1082


What are the 4 pillars of oop?

1148


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2540