title: C - error: ignoring return value of scanf?
body: <p>I'm only a few days into C programming, so I am not quite sure what's wrong with this code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(int argc, char * argv[]) {
      int sides;
      printf("Please enter length of three sides :\n");
      scanf("%d", &amp;sides);
      return 0;
  }
  </code></pre>
  
  <p>The error message I receive is as follows: </p>
  
  <blockquote>
    <p>ignoring return value of scanf</p>
  </blockquote>
  
  <p>What am I doing wrong here, and what can I do to fix it?</p>