title: Have I rightly understood the use of pointers in my code?
body: <p>I dont know if I've got it 100% right, but from what I've seen is that the &amp;-operator means &quot;the adress of&quot; whatever variable I've assigned a pointer to. But I cant see how the use of pointers is favour me here. I mean, I guess I have got the right output as X = 5.0 and y = 50.0, But I cant really see the connection between the variables and pointers. This is the code:</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      double *x, y;
  
      printf(&quot;Ange x: &quot;, &amp;x); // De-reference to the value of the standard input
      scanf(&quot;%lf&quot;, x);
  
      y = *x * 10;
  
      printf(&quot;%.1lf  %.1lf&quot;, *x, y);
      return 0;
  }
  </code></pre>