title: Converting int to char in C
body: <p>Right now I am trying to convert an int to a char in C programming. After doing research, I found that I should be able to do it like this:</p>
  
  <pre><code>int value = 10;
  char result = (char) value;
  </code></pre>
  
  <p>What I would like is for this to return 'A' (and for 0-9 to return '0'-'9') but this returns a new line character I think.
  My whole function looks like this:</p>
  
  <pre><code>char int2char (int radix, int value) {
    if (value &lt; 0 || value &gt;= radix) {
      return '?';
    }
  
    char result = (char) value;
  
    return result;
  }
  </code></pre>