Question: Compare and contrast pointers and references in C++. A) In what circumstance does it make more sense to use a pointer than a reference, and
Compare and contrast pointers and references in C++.
A) In what circumstance does it make more sense to use a pointer than a reference, and when does it make more sense to use a reference?
B) Under what circumstances are you allowed to return a reference from a function?
C) What constraints are placed on the declaration of a reference?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
