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

Answer Posted / john otieno onyango

passby value a copy of the entire object is passed to the
function
While
pass by reference only the address of the object is
transferred to the function

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use classes in oop?

575


What is multilevel inheritance explain with example?

623


Can bst contain duplicates?

664


Who invented oop?

651


write a C++ program for booking using constructor and destructor.

2042






What is abstraction example?

616


What is class and object with example?

583


What is the advantage of oop over procedural language?

623


How to hide the base class functionality in Inheritance?

636


What is abstract class in oops?

598


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1622


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2006


Is html an oop?

578


What does and I oop mean in text?

620


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

628