title: What does the scanf function return?
body: <p>What is the value returned by scanf when:</p>
  <pre><code>int g;
  int p = scanf(&quot;%d&quot;, &amp;g);      // Originally: int p = scanf(&quot;%d&quot;, g);
  </code></pre>
  <p>I know that the signature of the <code>scanf</code> function is:</p>
  <pre><code>int scanf(const char *format, ...)
  </code></pre>
  <p>What is the <code>int</code> value returned from this function?</p>