
Patrick B. answered 10/05/19
Math and computer tutor/teacher
Yes, you are correct.
passing a pointer to an object requires less memory on the call stack.
Passing a pointer to the object or data structure takes up less memory on the callback
than a pass by value, where a bitwise copy of the entire data structure or object must be made.
Suppose for example the data structure or class contains 255 bytes of data.
A bitwise copy of that argument on the call stack is 255 bytes rather than just
an 8 byte pointer, or whatever the size of the address pointer is... surely less