I have written C++ code for some time now using both pointers and
references.
I was asked what the point was in using pointers and could not give a
short an explanatory example.
I would say that you use a pointer when data are updated across function
calls.
But does anyone have an idea to a minimal example where its impossible
to avoid pointer?
references.
I was asked what the point was in using pointers and could not give a
short an explanatory example.
I would say that you use a pointer when data are updated across function
calls.
But does anyone have an idea to a minimal example where its impossible
to avoid pointer?
Comment