title: Scanf stores wrong value inside integer variable
body: <p>I have wrote the following code using c programming language (Standard 89):</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      int cc,dd;
      scanf("%d/%d",&amp;cc,&amp;dd);
  
      int ll;
      scanf("%d",&amp;ll);
      printf("Value of ll is: %d",ll);
      return 0;
  }
  </code></pre>
  
  <p>If I submit the following as an input in one line: <code>4/5h</code> I get the following output: <code>Value of ll is: 67</code>
  So I have 2 questions;</p>
  
  <p>1) where that 67 value came from? (I tried to change the input to something like 1/2t but got the same result)
  According to what I have read since there is no integers in the buffer the application should wait until one is available (For example to wait for a new input)</p>
  
  <p>2) When I run my code using debug mode I can see that ll value is 65 but not 67!</p>