What is the difference between pass by reference and pass by
value?

Answer Posted / ganesh

in pass by referce function can access original memory
location of variable so can access value while in case of
pass by value fuction can copy the value of variable to the
prototype of its kind of variable so calling funcion can
access the prototype variable but not the direct original
variable.

Is This Answer Correct ?    16 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main purpose of inheritance law?

667


What is the difference between procedural programming and oops?

550


What is abstraction encapsulation?

655


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

1655


What is the diamond problem in inheritance?

577






What is persistence in oop?

669


How do you define social class?

598


Is this job good for future? can do this job post grduate student?

1689


How do you achieve polymorphism?

611


program for insertion ,deletion,sorting in double link list

2276


What are properties in oop?

607


Can we have inheritance without polymorphism?

608


How do you achieve runtime polymorphism?

569


i got a backdoor offer in process global,Bangalore..Can i work with it?

2324


What is abstraction oop?

623