title: Working with atoi
body: <p>I have been attacking atoi from several different angles trying to extract ints from a string 1 digit at a time.  </p>
  
  <p><strong>Problem 1 - Sizing the array</strong><br />
  Should this array of 50 chars be of size 50 or 51 (to account for null terminator)?</p>
  
  <pre><code>char fiftyNumbersOne[51] = "37107287533902102798797998220837590246510135740250";
  </code></pre>
  
  <p><strong>Problem 2 - atoi output</strong><br /></p>
  
  <p>What am I doing wrong here?</p>
  
  <pre><code>char fiftyNumbersOne[51] = "37107287533902102798797998220837590246510135740250";
  int one = 0;
  char aChar = fiftyNumbersOne[48];
  printf("%c\n",aChar);//outputs 5 (second to last #)
  one = atoi(&amp;aChar);
  printf("%d\n",one);//outputs what appears to be INT_MAX...I want 5
  </code></pre>