title: Char array is returning incorrect values
body: <p>I have a char array, <code>chars[]</code> with values <code>{'#', '$', '1'}</code> contained within it. I want to remove the <code>1</code> and place it into another variable, <code>val</code>, but when I do it gives me a 49 (idk why). I tried debugging it and the info shows that the elements of <code>chars</code> are as follows:</p>
  
  <pre><code>char[0] = 35 '#'
  char[1] = 36 '$'
  char[2] = 49 '1'
  </code></pre>
  
  <p>Which in turn makes</p>
  
  <pre><code>int val = char[2];
  </code></pre>
  
  <p>become</p>
  
  <pre><code>val = 49
  </code></pre>
  
  <p>I'm not sure why this is, but it's throwing my plans off. Does anyone know what the problem is and what I can do to fix it?</p>