I have a few question that I am not very sure bout.
Q1. What is the diff between a function like:
a) char MyFunction (....)
b) char &MyFunction(...)
What should it return in case a) and b)?
I think that a) should return a char object while
b) should return a pointer to a char object...
cause a pointer to the address (as in b) is actualy the real value ( in this case, the char ).Am I right?
Q2. I have seen Functions with parameter (datatype *&varname,...)
.. why do we need '*&'? What should we pass in ? I think that we should pass in a object( and never a pointer ) because a pointer to the address of the object is simply the object (value) itself. Am I right again?
Thanks cause I am trying to understand pointers/addresses which I feel is quite complex to me...