On , 2022Jan26, at 13:33, Arthur O'Dwyer <arthur.j.odwyer@gmail.com> wrote:
FWIW, I teach- pass-by-value- problems: performance of all those copies; how to write an out-parameter?- C solution: pointers (a pointer holds a memory address)- pass-by-pointer- C++ enhancement: references (***)- pass-by-reference
I agree with your sequence, and I use something very similar.
But…..
Why do you teach the “pass by pointer”?