24 Computer -- Computer System

what's the difference between pass by reference and pass by value?

what's the difference between pass by reference and pass by value?

This picture develops a clear understanding.


The terms “pass by value” and “pass by reference” are used to describe how variables are passed on. To make it short: pass by value means the actual value is passed on. Pass by reference means a number (called an address) is passed on which defines where the value is stored.

More questions on Computer System

Close Open App