Why is this reference not working/ valid? : <p>I'm learning referencing in C and here is my code:</p>

<pre><code>#include &lt;stdio.h&gt;

int main(void)
{
    int x = 5;

    int &amp;ref = x;

    printf("%d\n", x);
    printf("%p\n", &amp;x);     
    printf("%p\n", &amp;ref);

    return 0;
}
</code></pre>

<p>When i compile, it shows these errors:</p>

<blockquote>
  <p>reference.c:7:6: error: expected identifier or '('</p>
  
  <p>int &amp;ref = x;</p>
  
  <p>reference.c:11:18: error: use of undeclared identifier 'ref'</p>
  
  <p>printf("%p\n", &amp;ref);</p>
  
  <p>2 errors generated.</p>
</blockquote>

<p>What should i do to fix this and thanks in advance.</p>
