Top "Pass-by-reference" questions

Pass by reference is an argument marshalling strategy whereby a variable's location in memory is passed to a function, rather than a copy of the variable's value, although the function appears in the source code to receive the variable itself rather than a pointer to it.

Call by reference, value, and name

I'm trying to understand the conceptual difference between call by reference, value, and name. So I have the following pseudocode: …

pass-by-reference pass-by-value pass-by-name
Passing objects by reference vs value

I just want to check my understanding of C#'s ways of handling things, before I delve too deeply into …

c# parameter-passing pass-by-reference pass-by-value
Using REF & OUT keywords with Passing by Reference & Passing by Value in C#

Here is what I understand so far: PASS BY VALUE Passing by value means a copy of an argument is …

c# pass-by-reference ref out
C# pass by value vs. pass by reference

Consider the following code (I have purposefully written MyPoint to be a reference type for this example) public class MyPoint { …

c# pass-by-reference pass-by-value value-type reference-type
pass by reference without the ref keyword

I'm not a veteran in socket programming, so while analyzing code I found in a database API I came across …

c# sockets pass-by-reference byte reference-type
PHP: "... variables can be passed by reference" in str_replace()?

I created a function to print a prepared-statement-sql-string with the variables in it, based on what I found in this …

php pass-by-reference str-replace
How do I pass large numpy arrays between python subprocesses without saving to disk?

Is there a good way to pass a large chunk of data between two python subprocesses without using the disk? …

python numpy subprocess pass-by-reference ctypes
Where should I prefer pass-by-reference or pass-by-value?

In what circumstances should I prefer pass-by-reference? Pass-by-value?

c++ function pass-by-reference pass-by-value
Bitwise Operations on char*

GCC gives error when compiling the code below. The commented two lines instead of the other or and shift lines …

c pass-by-reference bitwise-operators bit-shift bitwise-or
Collection Object - ByRef - ByVal

I am using VBA in Access 2013. In a regular module there are 2 procedures, RunProc() and PopulateCollection() When RunProc is executed …

vba pass-by-reference ms-access-2013