I've recently used this kind of notation to state that the function takes a pointer as a parameter.
void write(string* &word)
but I don't quite understand the theory behind it.
I've always thought that passing parameters to a function and the parameters mentioned in the function header combined to form a definition - kind like this:
I understand references and I understand pointers. I never bothered with reference to pointers and pointers to pointers because it seemed a little too much.
I think i understand that line though: a string's memory address is stored in the variable word?? Is that correct?
The string's memory address is stored in stringPointer.
I believe the variable word is an alias for the string pointer stringPointer. So I guess nothing is actually stored in the variable word.