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
what does the double& for
what does the double& for
Oct 29, 2012 at 7:24pm UTC
jayadelgado
(15)
in this code where i have to make the source for intersection what does the double& mean?
1
2
void
intersection(
double
m1,
double
b1,
double
m2,
double
b2,
double
& i_x,
double
& i_y)
Oct 29, 2012 at 7:26pm UTC
vlad from moscow
(6539)
& means reference to an object. So the function accpets not a copy of an argument but a reference to it. As the result any changes of parameter in the function body will keep in the original argument.
Last edited on
Oct 29, 2012 at 7:27pm UTC
Topic archived. No new replies allowed.