I’ve seen this image shared by many of my friends on social media and it’s such a great way of explaining passing by value vs by reference.

Penjee is the source and goes into more depth in their tutorial.

One thought on “ Passing by Value vs. by Reference ”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s