cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Distinguish between reference and value
Distinguish between reference and value parameters?
Jan 31, 2012 at 4:14pm UTC
hopesfall
(179)
How are reference and value parameters distinguished syntactically? How would the execution of a program change by changing a parameter from value to reference?
Jan 31, 2012 at 4:23pm UTC
Athar
(4466)
When you pass by value, a copy of the object is passed to the function.
References are aliases for the original objects.
Topic archived. No new replies allowed.