answersLogoWhite

0

What is a call by reference?

Updated: 8/16/2019
User Avatar

Wiki User

13y ago

Best Answer

In C++ (C Plus Plus), when you call by reference, you are directly accessing the data of the referenced object.

When you pass an object to a function by reference, any and all alterations to the object made within the function carry through to the actual object.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a call by reference?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is call by reference supported by pointer?

No, call-by-reference can be emulated with pointers.


Does java support call by reference?

No , Java does not support call by reference.


How do you combine call by value and call by reference programs in c?

Very easily: there is no call-by-reference in C.


Who do I call about a grant?

I would call your local reference librarian. Call your library and ask for the reference desk. You will get at least some starting helpers.


Can you swap two numbers by call by reference outside the function?

The using of term 'call-by-reference' implies function-call, so please rethink your question...


Explain the passing parameters as function in Call by Value and Call by Reference and then distinguish between them?

Call by value essentially passes a copy of an object's value whereas call by reference essentially passes the object itself. Pass by reference is the preferred method whenever possible as call by value will automatically invoke the object's copy constructor, which is often unnecessary, especially if the object is not affected by the function call (pass by constant reference).


What do you call a person who provides a reference?

A person who provides a reference is often referred to as a referee.


Call by reference?

A very useful thing.


What do you call someone who gives a reference?

A referee


Call by reference using pointer in c plus plus?

Example: void foo( MyClass& object ){} // function with call by reference signature MyClass* p = new MyClass(); // instantiate a pointer to MyClass foo( *p ); // call by reference using the pointer


What do ISDN devices use a call reference value for?

To identify a specific call


What do you call a person who writes a reference?

The word is referee.