Computer Science, asked by vivek120303, 10 months ago

diiferentiate between call by value and call by refereance in C++​

Answers

Answered by nawal212007
1

Answer:

In Call by value, a copy of the variable is passed whereas in Call by reference, a variable itself is passed. Call by value is the default method in programming languages like C++, PHP, Visual Basic NET, and C# whereas Call by reference is supported only Java language.

Answered by Anonymous
2

Explanation:

In C++ and Java, there are two ways to call a function or a method. The first is “call by value” and the second is “call by reference”. The main difference between both the methods is, call by value method passes the value of a variable and call by reference passes the address of that variable.

please mark as brainlist....

please follow me...

Similar questions