Possible Duplicate:
What are the differences between pointer variable and reference variable in C++?
What's the meaning of * and & when applied to variable names?
Trying to understand meaning of "&" in this situation
void af(int& g) { g++; cout<<g; } If you call this function and pass variable name - it will act the same like normal void(int g). I know, when you write &g that means you are passing address of variable g. But what does it means in this sample?
af(v); af(v);?