title: "&" meaning after variable type
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/57483/what-are-the-differences-between-pointer-variable-and-reference-variable-in-c">What are the differences between pointer variable and reference variable in C++?</a><br>
    <a href="https://stackoverflow.com/questions/3350626/whats-the-meaning-of-and-when-applied-to-variable-names">What&#39;s the meaning of * and &amp; when applied to variable names?</a>  </p>
  </blockquote>
  
  
  
  <p>Trying to understand meaning of "<code>&amp;</code>" in this situation</p>
  
  <pre><code>void af(int&amp; g)
  {
      g++;
      cout&lt;&lt;g;
  }
  </code></pre>
  
  <p>If you call this function and pass variable name - it will act the same like normal <code>void(int g)</code>. I know, when you write <code>&amp;g</code> that means you are passing address of variable <code>g</code>. But what does it means in this sample? </p>