StackOverflow Questions for Tag: pass-by-reference

J HAED
J HAED

Reputation: 21

The return value in array_walk()'s callback is not affecting the original array

Score: 2

Views: 885

Answers: 2

Read More
John Cooper
John Cooper

Reputation: 7621

Why is the & symbol required for the value parameter of array_walk()'s callback function?

Score: 3

Views: 2603

Answers: 4

Read More
TCM
TCM

Reputation: 16900

Any easy way to determine whether functions work on reference or call by value?

Score: 1

Views: 125

Answers: 3

Read More
David Sykes
David Sykes

Reputation: 49812

How do I pass a variable by reference?

Score: 3341

Views: 2163148

Answers: 43

Read More
frumious
frumious

Reputation: 1575

Calling sort() inside of a foreach() does not affect the original array

Score: -1

Views: 82

Answers: 1

Read More
ritu
ritu

Reputation:

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

Score: 726

Views: 929919

Answers: 18

Read More
user3664223
user3664223

Reputation: 337

Is it possible in C++ passing function inout parameter with default value

Score: -2

Views: 143

Answers: 2

Read More
David Maisonave
David Maisonave

Reputation: 188

Batch function get the value of variable pass by reference

Score: 0

Views: 46

Answers: 2

Read More
Pierre
Pierre

Reputation: 35226

Can you pass-by-reference in R?

Score: 76

Views: 66830

Answers: 8

Read More
Serotan
Serotan

Reputation: 21

Update items shown in two different views with their own controllers in flutter

Score: 2

Views: 27

Answers: 1

Read More
rsk82
rsk82

Reputation: 29377

change values in array when doing foreach

Score: 484

Views: 719744

Answers: 11

Read More
php-noob
php-noob

Reputation: 21

What does $row[$i]=&$row[$i]; mean? It seems $row is getting a reference of itself

Score: -1

Views: 418

Answers: 1

Read More
Lorenz Meyer
Lorenz Meyer

Reputation: 19895

When is foreach with a parameter by reference dangerous?

Score: 9

Views: 1664

Answers: 3

Read More
user4315
user4315

Reputation: 4785

Is Java "pass-by-reference" or "pass-by-value"?

Score: 7747

Views: 2782219

Answers: 91

Read More
Cap_Void
Cap_Void

Reputation: 13

Error in using call by reference with function to change the head of a singly linked list

Score: 1

Views: 54

Answers: 1

Read More
firstName lastName
firstName lastName

Reputation: 29

How can I pass a file to a function and store the files' contents in an array?

Score: 2

Views: 68

Answers: 1

Read More
sramij
sramij

Reputation: 4925

return reference to local variable

Score: 3

Views: 445

Answers: 3

Read More
user3448821
user3448821

Reputation: 249

Swap entire arrays in Javascript

Score: 3

Views: 1653

Answers: 6

Read More
Matt Gray
Matt Gray

Reputation: 65

Java Array behaving as call-by-reference only sometimes

Score: 0

Views: 49

Answers: 0

Read More
Attila Fenyvesi
Attila Fenyvesi

Reputation: 105

How to pass a template class as a function argument without C7568 error

Score: 1

Views: 1968

Answers: 3

Read More
PreviousPage 1Next