Answer to Question #504 in C++ for Adam

Question #504
When you should use links instead of pointers?
1
Expert's answer
2010-07-27T10:32:59-0400
Links should be used when there is such possibility, and pointers – when it is necessary. Links are usually used when you do not need to point to different objects. Pointers are often used when you need to return an exception from the function, for example a null pointer (NULL).

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS