0

When a parameter in a function definition (for say class distance) is abc(distance a) and in the main you call this function and pass distance b, what is the relationship thereafter between distance a and b? Do there adresses become equal-if so what implications does that have in the program?

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by CPPRULZ
0

Thanks RenjithVR , I now think I understand copy construcotrs better but just 1 more question: when you call abc(diatance b) to a (distance &c) function definition should you rather call abc(distance &b) to (distance &c)?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.