need some explaination...

hello guys...
what is & in this function declaration means?
void swap(int& i, int& j)
i and j are references to integers

in this case, it allows the implementation of swap() to swap the values of i and j in order to affect the variables passed in by the caller
ok...thx a lot...
Topic archived. No new replies allowed.