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

Answer Posted / subha raman

In case of pass by value..the change in the sub-function
will not cause any change in the main function wheareas in
pass by reference..the change in the sub-function will
change the value in the main function..

Is This Answer Correct ?    57 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation selenium?

554


What does oop mean in snapchat?

680


Which language is not a true object oriented programming language?

640


What do you mean by variable?

572


Is html an oop?

577






What is multilevel inheritance?

723


What is overloading in oop?

572


Why is oop better than procedural?

602


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1618


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1403


What is advantage of inheritance?

687


What is inheritance and how many types of inheritance?

614


What is the full form of oops?

607


what type of question are asked in thoughtworks pair programming round ?

1756


What is destructor in oop?

621