Quantcast
Channel: What's the difference between passing by reference vs. passing by value? - Stack Overflow
Viewing all articles
Browse latest Browse all 19

Answer by Craig for What's the difference between passing by reference vs. passing by value?

$
0
0

When passing by ref you are basically passing a pointer to the variable. Pass by value you are passing a copy of the variable. In basic usage this normally means pass by ref changes to the variable will seen be the calling method and pass by value they wont.


Viewing all articles
Browse latest Browse all 19

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>