M
Maksim Kasimov
i have two functions and both of them are to make changes into object field or get some results into caller function:
void FooFunc1(FooClass& a)
{ ...
void FooFunc2(FooClass* a)
{ ...
or
void FooFunc3(int& a)
{ ...
void FooFunc4(int* a)
{ ...
in what cases it is prefereble to use reference or pointer in parameter list?
many thanks.
void FooFunc1(FooClass& a)
{ ...
void FooFunc2(FooClass* a)
{ ...
or
void FooFunc3(int& a)
{ ...
void FooFunc4(int* a)
{ ...
in what cases it is prefereble to use reference or pointer in parameter list?
many thanks.