Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
21 views
asked by Guru (27.1k points) 35 53 115

1 Answer

0 votes
Pass by reference passes a pointer to the value. This allows the callee to modify the variable directly.Pass by value gives a copy of the value to the callee. This allows the callee to modify the value without modifying the variable. (In other words, the callee simply cannot modify the variable, since it lacks a reference to it.)
answered by Guru (39.1k points) 11 24 38

Related questions

+1 vote
3 answers 3.9k views
0 votes
1 answer 174 views
0 votes
1 answer 300 views
300 views asked by sagar Expert (12.3k points) 7 13 26
0 votes
1 answer 1.5k views
1.5k views asked by keem Expert (13.2k points) 29 44 63
0 votes
1 answer 1.4k views
1.4k views asked by keem Expert (13.2k points) 29 44 63
...