D
darren
Hi everybody
I am a bit confused about functions that take pointers / references as
parameters.
Are these two functions the same?
void myFunc(int& anInt);
void myFunct(int* anInt(0;
Would the difference be that, in the first function, i would us anInt
without dereferencing it, but in the second I would have to
dereference? Thanks for any clarification!
I am a bit confused about functions that take pointers / references as
parameters.
Are these two functions the same?
void myFunc(int& anInt);
void myFunct(int* anInt(0;
Would the difference be that, in the first function, i would us anInt
without dereferencing it, but in the second I would have to
dereference? Thanks for any clarification!