What is the difference between stdin with fscanf and scanf
<p>I want to get a integer from to user. But I wonder what is the difference between <code>fscanf(stdin, "%d", &amp;x);</code> and  <code>scanf("%d", &amp;x);</code>?  </p>