Glossary format update

This commit is contained in:
Angelos Chalaris
2019-08-13 11:19:29 +03:00
parent 611729214a
commit 8e47a2c8e7
99 changed files with 396 additions and 99 deletions

View File

@ -1,4 +1,7 @@
### Value vs reference
---
title: Value vs reference
tags: Value vs reference
---
When passing a variable by value, a copy of the variable is made, meaning that any changes made to the contents of the variable will not be reflected in the original variable.
When passing a variable by reference, the memory address of the actual variable is passed to the function or variable, meaning that modifying the variable's contents will be reflected in the original variable.