title: Simple C scanf does not work?
body: <p>If I try something such as:</p>
  
  <pre><code>int anint;
  char achar;
  
  printf("\nEnter any integer:");
  scanf("%d", &amp;anint);
  printf("\nEnter any character:");
  scanf("%c", &amp;achar);
  printf("\nHello\n");
  printf("\nThe integer entered is %d\n", anint);
  printf("\nThe char entered is %c\n", achar);
  </code></pre>
  
  <p>It allows entering an integer, then skips the second <code>scanf</code> completely, this is really strange, as when I swap the two (the <code>char</code> scanf first), it works fine. What on earth could be wrong?</p>