Glossary format update
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user