title: C error, double expects double*
body: <p>Just started using C and I'm getting 1 error on my code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      //declare variables
      double speed = 1.4, hours, totalYards;
  
      //prompt user to enter amount of hours
      printf("Enter the amount of hours: ");
      scanf("%lf", &amp;hours);
  
      //calculate amount of yards taken
      totalYards = speed * hours;
  
      //display result to user
      printf("The total amount of yards is %.2f", &amp;totalYards);
  
      return 0;
  }
  </code></pre>
  
  <p>and the error is </p>
  
  <p>warning: format '%f' expects argument of type 'double', but argument 2 has type 'double *' [-Wformat]|</p>
  
  <p>on the last printf.</p>