Don't understand "&" after string

Jun 23, 2013 at 8:49pm
In creating this function, what does the &guessword part mean? Thanks

 
int letterFill (char guess, string secretword, string &guessword)
Jun 23, 2013 at 9:16pm
It means the parameter guessword is passed by reference, rather than by value.

I take it you read part 1 of the tutorial. Now it's time for part 2
http://www.cplusplus.com/doc/tutorial/functions2/
Jun 23, 2013 at 9:20pm
Thanks, I'll try to understand it :D
Topic archived. No new replies allowed.