diiferentiate between call by value and call by refereance in C++
Answers
Answered by
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
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
Sociology,
5 months ago
Math,
5 months ago
English,
10 months ago
Computer Science,
1 year ago
History,
1 year ago