Makakuha ng mabilis at maaasahang mga sagot sa iyong mga tanong sa IDNStudy.com. Ang aming komunidad ay narito upang magbigay ng detalyadong sagot sa lahat ng iyong mga katanungan.

What is the difference between call by reference and call by value? When would you use one over the other?​

Sagot :

Answer:

KEY DIFFERENCE

In Call by value, a copy of the variable is passed whereas in Call by reference, a variable itself is passed. In Call by value, actual and formal arguments will be created in different memory locations whereas in Call by reference, actual and formal arguments will be created in the same memory location.