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 / achal ubbott

When we use 'pass by value' method, acopy of the object is
sent to the called function. So the copy constructor of the
object gets called. But the called function cannot modify
the content of the original object.
But references of an object are like alias. When 'pass by
reference ' is used it is actually using address at the
underlying. This way the called function may modify the
contents of the original object since operations are being
performed over the same object using its address, not on
the copy.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is void a keyword in c?

986


int far *near * p; means

3553


What are the salient features of c languages?

1099


Explain main function in c?

1082


What is the difference between ++a and a++?

1206


What is data structure in c programming?

1077


What is void main ()?

1075


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1026


Why static is used in c?

1091


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1240


Is there sort function in c?

1018


What is the ANSI C Standard?

1269


List the difference between a "copy constructor" and a "assignment operator"?

1013


Is a pointer a kind of array?

1178


Why C language is a procedural language?

1024