Trying to understand meaning of "&" in this situation
void af(int& g)
{
    g++;
    cout<
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? 
 
No comments:
Post a Comment