title: reading a number into a char
body: <p>what happens if I read an integer like 20,30,10000...9999 into variable <strong>a</strong> ? it only prints the first digit in the number that I've read...why is that ?
  for example if I read <strong>123</strong>, on the screen it prints 1. Isn't it supposed to convert the integer <strong>123</strong> into it's equivalent ASCII character representation ?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
  
      char a;
  
      scanf("%c", &amp;a);
      printf("%c", a);
  
      return 0;
  }
  </code></pre>
  
  <p>This is an exam question from C language.</p>