title: Parsing number into digits with scanf()
body: <p>I want to type in a number that is 10 digits long, then put the digits into an array. But for some reason, I get this random 2-digit numbers that seem to have nothing to do with my input (??).</p>
  
  <pre><code>char number[10];            //number containing 10 digits
  scanf("%s",number);         //store digits of number
  printf("%d\n",number[0]);   //print the 1st digit in the number
  printf("%d\n",number[1]);   //print the 2nd digit in the number
  </code></pre>
  
  <p>Here is what I got:</p>
  
  <pre><code>Input:
  1234567890
  
  Output:
  49
  50
  </code></pre>
  
  <p>Actually, 49 should be 1, and 50 should be 2.</p>