In a C++ function like this:
int& getNumber();
what does the & mean? Is it different from:
&
int getNumb
Yes, the int& version returns a reference to an int. The int version returns an int by value.
int&
int
See the section on references in the C++ FAQ